cleanup generated thin wall polys

This commit is contained in:
Stewart Allen 2021-02-22 19:32:54 -05:00
commit 47bcad3c55
2 changed files with 5 additions and 1 deletions

View file

@ -2,7 +2,7 @@
## `C` cosmetic, `F` functional, `P` performance, `B` bug fix
* `B` origin bug (Onshape?) when switching modes in 2.5 and 2.6
* `B` origin (and bed size) bug (Onshape?) when switching modes in 2.5 and 2.6
* `P` duplicate objects should share same slice data unless rotated or scaled
* `P` allow selection to me decimated on demand (context menu?)

View file

@ -444,6 +444,10 @@
for (let p of poly) {
np.push(p);
}
np = np.clean();
if (np.last().distTo2D(np.first()) <= max) {
np.push(np.first());
}
return np;
});
};