|
|
|
@ -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 }, {
|
|
|
|
|
const paths = tool.GetModelFeedPath(
|
|
|
|
|
{ Thickness: brThickness, ContourCurve: brContour },
|
|
|
|
|
{
|
|
|
|
|
shape,
|
|
|
|
|
thickness,
|
|
|
|
|
dir, knifeRadius, addLen, addWidth, addDepth
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
redundancyKnif);
|
|
|
|
|
|
|
|
|
|
return paths.map((c: ExtrudeContourCurve) => ConverToPtsBul(c, false));
|
|
|
|
|
}
|
|
|
|
|