From 3eabff35fbb9bb5adfdaf7fcc1fc4504356d76e6 Mon Sep 17 00:00:00 2001 From: ChenX Date: Tue, 27 Jun 2023 16:57:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E7=AE=80=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GraphicsSystem/OffsetPolyline.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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]); }