|
|
@ -67,7 +67,7 @@ export function ParseOddments(container: Container, binPath: Path, knifeRadius:
|
|
|
|
if (clipperCpp.lib.area(poly) < 0) continue;//移除内部的,无意义的
|
|
|
|
if (clipperCpp.lib.area(poly) < 0) continue;//移除内部的,无意义的
|
|
|
|
|
|
|
|
|
|
|
|
let tempPath = new Path(PathScale(poly, 1e-4));
|
|
|
|
let tempPath = new Path(PathScale(poly, 1e-4));
|
|
|
|
if (canPutPaths.some(p => tempPath.GetInsideNFP(p)?.length))//能塞的下制定的轮廓才会被留下
|
|
|
|
if (canPutPaths.some(p => tempPath.GetInsideNFP(p)?.length))//能塞的下指定的轮廓才会被留下
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//设置轮廓的位置
|
|
|
|
//设置轮廓的位置
|
|
|
|
tempPath.OrigionMinPoint.x += nfpPath.OrigionMinPoint.x + polygonPath.OrigionMinPoint.x;
|
|
|
|
tempPath.OrigionMinPoint.x += nfpPath.OrigionMinPoint.x + polygonPath.OrigionMinPoint.x;
|
|
|
|