remove unneeded outside pass when roughing entire stock

This commit is contained in:
Stewart Allen 2023-02-17 18:43:44 -05:00
commit b32b39012f

View file

@ -341,7 +341,7 @@ class OpRough extends CamOp {
}) || []; }) || [];
// add outside pass if not inside only // add outside pass if not inside only
if (!roughIn) { if (!roughIn && !roughStock) {
const outside = POLY.offset(shadow.clone(), toolDiam / 2 + roughLeave, {z: slice.z}); const outside = POLY.offset(shadow.clone(), toolDiam / 2 + roughLeave, {z: slice.z});
if (outside) { if (outside) {
outside.forEach(p => p.depth = -p.depth); outside.forEach(p => p.depth = -p.depth);
@ -387,8 +387,8 @@ class OpRough extends CamOp {
// .addPolys(tshadow) // .addPolys(tshadow)
// .setLayer("rough shadow", {line: 0x00aa00}) // .setLayer("rough shadow", {line: 0x00aa00})
// .addPolys(shadow) // .addPolys(shadow)
// .setLayer("rough shell", {line: 0xaa0000}) .setLayer("rough shell", {line: 0xaa0000})
// .addPolys(shell); .addPolys(shell);
slice.output() slice.output()
.setLayer("roughing", {face: color, line: color}) .setLayer("roughing", {face: color, line: color})
.addPolys(offset); .addPolys(offset);