From 2d50a58c0e1b0e4f2521a97c3f440697730999c3 Mon Sep 17 00:00:00 2001 From: ChenX Date: Sun, 13 Aug 2023 10:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E9=95=9C=E5=83=8F=E5=90=8E?= =?UTF-8?q?=E5=B0=81=E8=BE=B9=E5=AF=B9=E5=BA=94=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GraphicsSystem/CalcEdgeSealing.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/GraphicsSystem/CalcEdgeSealing.ts b/src/GraphicsSystem/CalcEdgeSealing.ts index dd0c75c60..22df7ea35 100644 --- a/src/GraphicsSystem/CalcEdgeSealing.ts +++ b/src/GraphicsSystem/CalcEdgeSealing.ts @@ -227,21 +227,17 @@ export function GetBoardSealingCurves(br: Board, offsetInside = false): Curve[] if (brContour instanceof Circle) return [brContour.Clone()]; - if (br.IsRect) - brContour = new Polyline().Rectangle(br.Width, br.Height); - if (offsetInside) { let dir = Math.sign(brContour.Area2); let offsetedCurve = brContour.GetOffsetCurves(-1 * dir)[0] as Polyline; - if (br.IsSpecialShape && OffsetOutlineSpNotChange(brContour, offsetedCurve)) + if (OffsetOutlineSpNotChange(brContour, offsetedCurve)) brContour = offsetedCurve; } //避免共线导致的侧面数据对应错误 let curves = brContour.Explode(); - if (br.IsSpecialShape) - MergeCurvelist(curves); + MergeCurvelist(curves); if (curves.length === 1 && curves[0] instanceof Circle)//变成一个圆 return curves;