开发:传递刀路冗余参数

pull/2519/MERGE
ChenX 9 months ago
parent e460cac858
commit 5c54652422

@ -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));
}

Loading…
Cancel
Save