restore gcode preview. bump rev 2.3.D4
This commit is contained in:
parent
cea9e60e0a
commit
fff3ad5db6
11 changed files with 113 additions and 221 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue