From e5962f4aebadf79fa01a3e7abd8fc54edb88aff2 Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 15 Apr 2021 17:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D:=E9=80=A0=E5=9E=8B=E6=98=AF?= =?UTF-8?q?=E5=9C=86=E6=97=B6,=E5=B9=B6=E4=B8=94=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=9C=86=E8=BD=AC=E5=AD=94=E6=97=B6,=E9=80=A0=E5=9E=8B?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E9=81=BF=E5=85=8D=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/GraphicsSystem/ToolPath/FeedingToolPath.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/GraphicsSystem/ToolPath/FeedingToolPath.ts b/src/GraphicsSystem/ToolPath/FeedingToolPath.ts index 55549a1f9..a19c84309 100644 --- a/src/GraphicsSystem/ToolPath/FeedingToolPath.ts +++ b/src/GraphicsSystem/ToolPath/FeedingToolPath.ts @@ -330,7 +330,11 @@ export class FeedingToolPath extends Singleton { if (userConfig.chaidanOption.useDefaultRad) modelings[i].knifeRadius = userConfig.chaidanOption.radius; - let cus = this.GetModelFeedPath(br, modelings[i]); + let m = modelings[i]; + let cu = m.shape.Outline.Curve; + if (cu instanceof Circle && cu.Radius < userConfig.chaidanOption.modeling2HoleRad + 1e-6) + continue; + let cus = this.GetModelFeedPath(br, m); if (cus.length === 0) errorIndexs.push(i); }