|
|
|
@ -305,7 +305,7 @@ export class ArcBoardBuild
|
|
|
|
|
if (this._FaceDir === FaceDirection.Front)
|
|
|
|
|
zValue = 0;
|
|
|
|
|
|
|
|
|
|
let pl = new Polyline().Rectangle(dist1 + dist2, 10000).Move(new Vector3(d - dist1, -100, zValue));
|
|
|
|
|
let pl = new Polyline().Rectangle(dist1 + dist2, 10000).Move(new Vector3(d - dist1, -100, 0));
|
|
|
|
|
|
|
|
|
|
if (this._SweepAngle !== 0)
|
|
|
|
|
pl.ApplyMatrix(this.Rotate2OCSMtx);
|
|
|
|
@ -313,7 +313,7 @@ export class ArcBoardBuild
|
|
|
|
|
let data: IModeling = {
|
|
|
|
|
shape: new Shape(Contour.CreateContour(pl)),
|
|
|
|
|
thickness: thickness,
|
|
|
|
|
dir: FaceDirection.Front,
|
|
|
|
|
dir: 1 - this._FaceDir,//见光面和开槽面相反 这里翻转它
|
|
|
|
|
knifeRadius: 3,
|
|
|
|
|
addLen: 0,
|
|
|
|
|
};
|
|
|
|
@ -324,17 +324,14 @@ export class ArcBoardBuild
|
|
|
|
|
let d = dists[i];
|
|
|
|
|
let zValue = arcBoardOption.retainedThickness;
|
|
|
|
|
let thickness = br.Thickness - zValue;
|
|
|
|
|
if (this._FaceDir === FaceDirection.Front)
|
|
|
|
|
zValue = 0;
|
|
|
|
|
|
|
|
|
|
let pl = new Polyline().Rectangle(1, 10000).Move(new Vector3(d - 0.5, -100, zValue));
|
|
|
|
|
let pl = new Polyline().Rectangle(1, 10000).Move(new Vector3(d - 0.5, -100, 0));
|
|
|
|
|
if (this._SweepAngle !== 0)
|
|
|
|
|
pl.ApplyMatrix(this.Rotate2OCSMtx);
|
|
|
|
|
|
|
|
|
|
let data: IModeling = {
|
|
|
|
|
shape: new Shape(Contour.CreateContour(pl)),
|
|
|
|
|
thickness: thickness,
|
|
|
|
|
dir: FaceDirection.Front,
|
|
|
|
|
dir: 1 - this._FaceDir,//见光面和开槽面相反 这里翻转它
|
|
|
|
|
knifeRadius: 3,
|
|
|
|
|
addLen: 0,
|
|
|
|
|
};
|
|
|
|
@ -347,7 +344,7 @@ export class ArcBoardBuild
|
|
|
|
|
br.Modeling2D = this._board.Modeling2D;
|
|
|
|
|
br.Modeling3D = this._board.Modeling3D;
|
|
|
|
|
|
|
|
|
|
// TestDraw(br.Clone());
|
|
|
|
|
//TestDraw(br.Clone());
|
|
|
|
|
|
|
|
|
|
let csg = br.CSG;
|
|
|
|
|
|
|
|
|
|