restore gcode preview. bump rev 2.3.D4

This commit is contained in:
Stewart Allen 2020-11-09 13:57:18 -05:00
commit fff3ad5db6
11 changed files with 113 additions and 221 deletions

View file

@ -353,9 +353,9 @@
}
}
let polys = [], t = [], c = [];
POLY.flatten(slice.camLines).forEach(function (poly) {
POLY.flatten(slice.camLines.clone(true)).forEach(function (poly) {
let child = poly.parent;
if (depthFirst) poly = poly.clone();
if (depthFirst) poly = poly.clone(true);
if (child) c.push(poly); else t.push(poly);
poly.layer = depthData.layer;
polys.push(poly);

View file

@ -222,6 +222,8 @@
}
});
if (!offset) return;
slice.camLines = offset;
slice.output()
.setLayer("roughing", {face: 0, line: 0})
@ -229,7 +231,7 @@
updateOp(index, slices.length);
});
sliceAll.appendAll(slices);
sliceAll.appendAll(slices.filter(slice => slice.camLines));
}
// create outline slices
@ -508,7 +510,7 @@
});
if (notabs) {
console.log(`unable to compute tabs for ${notabs} traces @ z=${slice.z}`);
console.log(`unable to compute tabs for ${notabs} traces @ z=${z}`);
}
return nutrace;