some cam slicer debugging

This commit is contained in:
Stewart Allen 2023-02-25 23:26:57 -05:00
commit 54395c17d5
2 changed files with 10 additions and 4 deletions

View file

@ -353,7 +353,7 @@ CAM.traces = async function(settings, widget, single) {
}
}
} else
base.polygons.flatten(data.tops,null,true).forEach(poly => {
base.polygons.flatten(data.tops).forEach(poly => {
poly.inner = null;
poly.parent = null;
let z = poly.getZ();
@ -366,6 +366,7 @@ CAM.traces = async function(settings, widget, single) {
}
// do not add duplicates
if (traces[i].isEquivalent(poly) && dz < 0.1) {
// console.log({ dup: poly });
return;
}
}