|
|
|
@ -31,6 +31,9 @@ export function OptimizeToolPath(offsetCus: Curve[], originShape: Shape, rad: nu
|
|
|
|
|
}
|
|
|
|
|
if (cu instanceof Polyline)
|
|
|
|
|
{
|
|
|
|
|
//轮廓朝下的逆时针轮廓需要翻转
|
|
|
|
|
if (cu.IsClose && cu.Normal.z * cu.Area2 < 0)
|
|
|
|
|
cu.Reverse();
|
|
|
|
|
plList.push(cu);
|
|
|
|
|
}
|
|
|
|
|
else if (cu instanceof Circle)
|
|
|
|
|