add fdm 'solidify' feature to remove inner voids from models at slice time

This commit is contained in:
Stewart Allen 2025-12-15 18:24:21 -05:00
commit a7fccd7636
5 changed files with 15 additions and 5 deletions

View file

@ -953,6 +953,7 @@ class Widget {
}
}
// map found tris to polygons
let polys = found.map(a => {
return newPolygon()
.add(a[0].x, a[0].y, a[0].z)
@ -960,7 +961,7 @@ class Widget {
.add(a[2].x, a[2].y, a[2].z);
});
// recursively merge grid constrained subsets of triangles
// recursively merge grid constrained subsets of polygons
polys = unionTris(polys);
// for a more perfect union, pump shadows to merge very close lines