fix preview and gcode export for lathe ops

This commit is contained in:
Stewart Allen 2023-02-11 11:10:20 -05:00
commit 55ea6825eb
4 changed files with 15 additions and 23 deletions

View file

@ -1368,6 +1368,8 @@ function doSolidsFill(slice, spacing, angle, minArea, fillQ) {
stop.push(solid);
}
}
// problematic for organic shapes with lots of big and small tops
// the small tops tend to trigger entire layer fills
if (stop.length) {
let top_area = top.poly.areaDeep();
let stop_area = stop.map(p => p.areaDeep()).reduce((a,v) => a + v);