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

@ -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;
});
};