add slice layer naming using op notes. fixes #447

This commit is contained in:
Stewart Allen 2025-11-13 22:25:06 -05:00
commit 04da5abccb
6 changed files with 11 additions and 8 deletions

View file

@ -65,7 +65,7 @@ class OpRough extends CamOp {
}
slice.camLines = polys;
slice.output()
.setLayer("roughing", {face: color, line: color})
.setLayer(state.layername, {face: color, line: color})
.addPolys(slice.camLines);
addSlices(slice);
camFaces.push(slice);
@ -279,7 +279,7 @@ class OpRough extends CamOp {
slices.forEach(slice => {
slice.output()
.setLayer("roughing", {face: color, line: color})
.setLayer(state.layername, {face: color, line: color})
.addPolys(slice.camLines);
});
this.sliceOut = slices.filter(slice => slice.camLines);