fix rough/outline failing to observe z-bottom

This commit is contained in:
Stewart Allen 2024-01-19 16:12:39 -05:00
commit aa79e89700

View file

@ -265,7 +265,9 @@ class OpRough extends CamOp {
indices = indices.appendAll(flats).sort((a,b) => b-a);
}
indices = indices.filter(v => v >= zBottom);
// console.log('indices', ...indices, {zBottom});
let cnt = 0;
let tot = 0;
await slicer.slice(indices, { each: data => {
@ -522,6 +524,7 @@ class OpOutline extends CamOp {
.map(v => (parseFloat(v) - 0.01).round(5))
.filter(v => v > 0 && indices.indexOf(v) < 0);
indices = indices.appendAll(flats).sort((a,b) => b-a);
indices = indices.filter(v => v >= zBottom);
// console.log('indices', ...indices, {zBottom, slicer});
let cnt = 0;
let tot = 0;