|
|
|
@ -121,6 +121,7 @@ export class DrawDrillingTool extends Singleton
|
|
|
|
|
if (bigRad)
|
|
|
|
|
{
|
|
|
|
|
pxlEnt = CylinderHole.CreateCylHole(bigRad, pxlDepth, GangDrillType.WoodPXL);
|
|
|
|
|
pxlEnt.AllowPxl = this.m_Option.allowPxl;
|
|
|
|
|
pxlEnt.ColorIndex = 6;
|
|
|
|
|
this.woodPins.push(pxlEnt);
|
|
|
|
|
//将三个实体移动到相应的位置
|
|
|
|
@ -214,6 +215,7 @@ export class DrawDrillingTool extends Singleton
|
|
|
|
|
if (this.m_Option.pxlRad && pxlDepth)
|
|
|
|
|
{
|
|
|
|
|
pxlEnt = CylinderHole.CreateCylHole(this.m_Option.pxlRad, pxlDepth, GangDrillType.Pxl);
|
|
|
|
|
pxlEnt.AllowPxl = this.m_Option.allowPxl;
|
|
|
|
|
|
|
|
|
|
this.drillEnts.push(pxlEnt);
|
|
|
|
|
//将三个实体移动到相应的位置
|
|
|
|
@ -725,14 +727,14 @@ export class DrawDrillingTool extends Singleton
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
let ocs = interBoard.OCSInv.multiply(this.m_Face.OCS).multiply(MoveMatrix(new Vector3(dist)));
|
|
|
|
|
return CyHoleInBoard(this.drillEnts as CylinderHole[], interBoard, ocs, false, this.m_Option.allowPxl);
|
|
|
|
|
return CyHoleInBoard(this.drillEnts as CylinderHole[], interBoard, ocs, false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
private CheckWoodInBoard(dist: number)
|
|
|
|
|
{
|
|
|
|
|
let br = this.m_Face.InterBoard;
|
|
|
|
|
let ocs = br.OCSInv.multiply(this.m_Face.OCS).multiply(MoveMatrix(new Vector3(dist)));
|
|
|
|
|
return CyHoleInBoard(this.woodPins as CylinderHole[], br, ocs, false, this.m_Option.allowPxl);
|
|
|
|
|
return CyHoleInBoard(this.woodPins as CylinderHole[], br, ocs, false);
|
|
|
|
|
}
|
|
|
|
|
private CheckModelingCollision(localBoxs: Box3[], intBox3s: Box3[], dist: number)
|
|
|
|
|
{
|
|
|
|
@ -950,8 +952,8 @@ export class DrawDrillingTool extends Singleton
|
|
|
|
|
needRemoveDrillList.add(hole);
|
|
|
|
|
}
|
|
|
|
|
//偏移后判断是否在板件外面
|
|
|
|
|
else if (!CyHoleInBoard(moveAfterDrills, this.m_Face.InterBoard, this.m_Face.InterBoard.OCSInv, false, this.m_Option.allowPxl) &&
|
|
|
|
|
!CyHoleInBoard(moveAfterDrills, this.m_Face.LocalBoard, this.m_Face.LocalBoard.OCSInv, false, this.m_Option.allowPxl))
|
|
|
|
|
else if (!CyHoleInBoard(moveAfterDrills, this.m_Face.InterBoard, this.m_Face.InterBoard.OCSInv, false) &&
|
|
|
|
|
!CyHoleInBoard(moveAfterDrills, this.m_Face.LocalBoard, this.m_Face.LocalBoard.OCSInv, false))
|
|
|
|
|
{
|
|
|
|
|
this._InteractionLog(`有${isWoodPinss ? "木销" : "通孔排钻"}偏移后在板件外,跳过绘制`);
|
|
|
|
|
needRemoveDrillList.add(hole);
|
|
|
|
|