fix tab cuts into rough clear top
This commit is contained in:
parent
11b0bab1fb
commit
ae2a669c4c
1 changed files with 8 additions and 1 deletions
|
|
@ -55,7 +55,14 @@ class OpRough extends CamOp {
|
||||||
for (let z = zstart; zsteps > 0; zsteps--) {
|
for (let z = zstart; zsteps > 0; zsteps--) {
|
||||||
let slice = newSlice();
|
let slice = newSlice();
|
||||||
slice.z = z;
|
slice.z = z;
|
||||||
slice.camLines = POLY.setZ(facing.clone(true), slice.z + roughLeaveZ);
|
let polys = POLY.setZ(facing.clone(true), slice.z + roughLeaveZ);
|
||||||
|
if (tabs) {
|
||||||
|
tabs.forEach(tab => {
|
||||||
|
tab.off = POLY.expand([tab.poly], toolDiam / 2).flat();
|
||||||
|
});
|
||||||
|
polys = cutTabs(tabs, polys, slice.z);
|
||||||
|
}
|
||||||
|
slice.camLines = polys;
|
||||||
slice.output()
|
slice.output()
|
||||||
.setLayer("face", {face: color, line: color})
|
.setLayer("face", {face: color, line: color})
|
||||||
.addPolys(slice.camLines);
|
.addPolys(slice.camLines);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue