fix redundant path output in depth-first mode

This commit is contained in:
Stewart Allen 2021-01-17 22:23:51 -05:00
commit 26c0a5cf69
7 changed files with 19 additions and 12 deletions

View file

@ -424,7 +424,7 @@
fitted.filter(top => !top.level_emit).forEach(top => {
top.level_emit = true;
let inside = level.filter(poly => poly.isInside(top));
start = poly2polyEmit(inside, start, emitter, { mark: "emark" });
start = poly2polyEmit(inside, start, emitter, { mark: "emark", perm: true });
start = depthRoughPath(start, depth + 1, levels, tops, emitter, top);
});
return start;