add omit pocket option to CAM outline op

This commit is contained in:
Stewart Allen 2023-01-15 18:47:57 -05:00
commit 0c2d1b7be2
4 changed files with 32 additions and 14 deletions

View file

@ -587,12 +587,18 @@ class OpOutline extends CamOp {
for (let top of tops) {
if (!top.inner) continue;
top.inner = top.inner.filter(innr => {
return !innr.isEquivalent(hole);
return !innr.isEquivalent(hole, false, 0.1);
});
}
}
}
if (op.omitvoid) {
for (let top of tops) {
delete top.inner;
}
}
let offset = POLY.expand(tops, toolDiam / 2, slice.z);
if (!(offset && offset.length)) {
return;