loosen poly fitting for depth first

This commit is contained in:
Stewart Allen 2024-10-22 10:37:31 -04:00
commit 3dfd210739
2 changed files with 1 additions and 2 deletions

View file

@ -5,7 +5,6 @@
"add/array",
"add/class",
"ext/three",
"ext/three-bgu",
"add/three",
"ext/clip2",
"ext/earcut",

View file

@ -606,7 +606,7 @@ function prepEach(widget, settings, print, firstPoint, update) {
return start;
}
let ltops = tops[depth];
let fitted = fit ? ltops.filter(poly => poly.isInside(fit, 0.01)) : ltops;
let fitted = fit ? ltops.filter(poly => poly.isInside(fit, 0.05)) : ltops;
let ftops = fitted.filter(top => !top.level_emit);
if (ftops.length > 1) {
ftops = POLY.route(ftops, start);