add CAM pocket option to ignore interior features (outline only)

This commit is contained in:
Stewart Allen 2022-10-05 12:22:53 -04:00
commit 798ee85d23
5 changed files with 14 additions and 1 deletions

View file

@ -1027,6 +1027,12 @@ class OpPocket extends CamOp {
if (outline.length === 0) {
continue;
}
// option to skip interior features (holes, pillars)
if (op.outline) {
for (let p of outline) {
p.inner = undefined;
}
}
if (false) newSliceOut(zmin).output()
.setLayer("pocket area", {line: 0x1188ff}, false)
.addPolys(outline)