!657 修正孔面判断问题

pull/657/MERGE
ZoeLeeFZ 5 years ago committed by ChenX
parent c03f5064a8
commit e8844b2803

@ -366,7 +366,7 @@ export namespace Production
if (isParallelTo(nail.Normal, brNormal))
{
let nailPosition = nail.Position.applyMatrix4(br.OCSInv);
let face = equalv3(nail.Normal, brNormal) ? 0 : 1;
let face = equalv3(nail.Normal, brNormal, 1e-3) ? 0 : 1;
let depth = face === 1 ? nailPosition.z : br.Thickness - nailPosition.z;
data.frontBackHoles.push({
@ -486,7 +486,7 @@ export namespace Production
if (position.x <= 0 || position.x >= br.Width || position.y <= 0 || position.y >= br.Height) return;
position.sub(offsetTanslation);
holes = data.frontBackHoles;
face = !equalv3(d.Normal, brNormal) ? 0 : 1;
face = !equalv3(d.Normal, brNormal, 1e-3) ? 0 : 1;
isPush = true;
}
}

Loading…
Cancel
Save