From 5c546524224e3dddbf4ab7374eceaefcb5a13a3f Mon Sep 17 00:00:00 2001 From: ChenX Date: Thu, 28 Dec 2023 13:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E4=BC=A0=E9=80=92=E5=88=80?= =?UTF-8?q?=E8=B7=AF=E5=86=97=E4=BD=99=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Production/Product.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Production/Product.ts b/src/Production/Product.ts index 5189436b2..0640ceb9c 100644 --- a/src/Production/Product.ts +++ b/src/Production/Product.ts @@ -1045,7 +1045,7 @@ export namespace Production return res; } - export function GetChaiDanFeedingPath(data: IChaiDanFeedingData) + export function GetChaiDanFeedingPath(data: IChaiDanFeedingData, redundancyKnif = 0) { const { thickness, boardContour, dir, addLen, addWidth, addDepth, knifeRadius, brThickness } = data; let brContour = Data2Polyline(boardContour); @@ -1054,11 +1054,14 @@ export namespace Production const holes = data.holes.map(h => Contour.CreateContour(Data2Polyline(h))); let shape = new Shape(outline, holes); - const paths = tool.GetModelFeedPath({ Thickness: brThickness, ContourCurve: brContour }, { - shape, - thickness, - dir, knifeRadius, addLen, addWidth, addDepth - }); + const paths = tool.GetModelFeedPath( + { Thickness: brThickness, ContourCurve: brContour }, + { + shape, + thickness, + dir, knifeRadius, addLen, addWidth, addDepth + }, + redundancyKnif); return paths.map((c: ExtrudeContourCurve) => ConverToPtsBul(c, false)); }