diff --git a/src/GraphicsSystem/OffsetPolyline.ts b/src/GraphicsSystem/OffsetPolyline.ts index 6500b0e8f..a1e17c7bd 100644 --- a/src/GraphicsSystem/OffsetPolyline.ts +++ b/src/GraphicsSystem/OffsetPolyline.ts @@ -304,11 +304,9 @@ export class OffsetPolyline let refP = this._Vertexs[curveResNext.index]; if (tPts.length > 0) //ipts = 1 or ipts = 2 tp = SelectNearP(iPts, refP); - else //补单圆 或者尝试连接 + else //补圆弧 或者尝试连接 { - let arc = this.CreateArc(refP, sp, ep); - - if (iPts.length > 0 && !this._ToolPath && this.IsSharpCorner(curveResNow, curveResNext, refP)) + if (iPts.length > 0 && !this._ToolPath && this.IsSharpCorner(curveResNow, curveResNext, refP))//非加工刀路 并且尖角化时 { //设置新的连接点,并且备份旧点 let oldp: Vector3; @@ -372,10 +370,10 @@ export class OffsetPolyline if (onPre && onNext) tp = p; else - curveResNow.paddingCurve = [arc]; + curveResNow.paddingCurve = [this.CreateArc(refP, sp, ep)];//补圆弧 } else - curveResNow.paddingCurve = [arc]; + curveResNow.paddingCurve = [this.CreateArc(refP, sp, ep)];//补圆弧 this._TrimCircleContours.push(this._Circles[curveResNext.index]); }