alter depth first paths to use proper poly2poly parameter
This commit is contained in:
parent
afedbfb5f9
commit
3b07a089dd
2 changed files with 22 additions and 8 deletions
|
|
@ -1096,9 +1096,9 @@
|
|||
continue;
|
||||
}
|
||||
// do not allow inner and outer polys to mix
|
||||
if (!above.sameWindings(pool)) {
|
||||
continue;
|
||||
}
|
||||
// if (!above.sameWindings(pool)) {
|
||||
// continue;
|
||||
// }
|
||||
// if pool fits into smallest above pool, add it and break
|
||||
if (polygonFitsIn(pool, above, 0.1)) {
|
||||
above.poolsDown.push(pool);
|
||||
|
|
@ -1112,8 +1112,8 @@
|
|||
if (poolPoly.mark) return;
|
||||
poolPoly.mark = true;
|
||||
const polys = poolPoly.pool.slice().append(poolPoly);
|
||||
startPoint = poly2polyEmit(polys, startPoint, emitter);
|
||||
startPoint = poly2polyEmit(poolPoly.poolsDown, startPoint, emitPool, "del_pdown");
|
||||
startPoint = poly2polyEmit(polys, startPoint, emitter, null, false);
|
||||
startPoint = poly2polyEmit(poolPoly.poolsDown, startPoint, emitPool, "del_pdown", false);
|
||||
return startPoint;
|
||||
};
|
||||
|
||||
|
|
@ -1121,7 +1121,7 @@
|
|||
// pools are sorted smallest to largest. pools are polygons with an
|
||||
// attached 'pool' array of polygons
|
||||
layers.forEach(function(pools) {
|
||||
startPoint = poly2polyEmit(pools, startPoint, emitPool, "del_ptop");
|
||||
startPoint = poly2polyEmit(pools, startPoint, emitPool, "del_ptop", true);
|
||||
})
|
||||
return startPoint;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue