修复排钻失败

pull/369/head
ChenX 5 years ago
parent ac6123d918
commit f4d08ae34c

@ -543,11 +543,10 @@ export class Board extends ExtureSolid
this.m_BoardProcessOption.highDrill = Array(cu.EndParam).fill(defaultType);
super.ContourCurve = cu;
}
GetBoardBoxInMat(mat: Matrix4)
GetBoardBoxInMat(mtx: Matrix4)
{
let min = new Vector3(0, 0, 0).applyMatrix4(this.OCS).applyMatrix4(mat);
let max = new Vector3(this.width, this.height, this.thickness).applyMatrix4(this.OCS).applyMatrix4(mat);
return new Box3Ext().setFromPoints([min, max]);
let mtxC = mtx.clone().multiply(this.OCS);
return this.BoundingBoxInOCS.applyMatrix4(mtxC);
}
Explode()
{

Loading…
Cancel
Save