fix clearance move between parts of differing heights. fix persist moves check

This commit is contained in:
Stewart Allen 2020-03-11 08:27:32 -04:00
commit 25a3be2cdc
3 changed files with 20 additions and 17 deletions

View file

@ -1008,20 +1008,15 @@ var gs_kiri_print = exports;
poolPoly.mark = true;
const polys = poolPoly.pool.slice().append(poolPoly);
startPoint = poly2polyEmit(polys, startPoint, emitter);
// poolPoly.poolsDown.forEach(function(downPool) {
// emitPool(downPool);
// });
poly2polyEmit(poolPoly.poolsDown, startPoint, emitPool, "del_pdown");
startPoint = poly2polyEmit(poolPoly.poolsDown, startPoint, emitPool, "del_pdown");
return startPoint;
};
// from the top layer, iterate and descend through all connected pools
// pools are sorted smallest to largest. pools are polygons with an
// attached 'pool' array of polygons
layers.forEach(function(pools) {
// pools.forEach(function(poolPoly) {
// emitPool(poolPoly);
// });
poly2polyEmit(pools, startPoint, emitPool, "del_ptop");
startPoint = poly2polyEmit(pools, startPoint, emitPool, "del_ptop");
})
return startPoint;
}