factor out rastering so i can be distributed to minions

This commit is contained in:
Stewart Allen 2023-01-11 12:48:43 -05:00
commit 511f66571a
2 changed files with 120 additions and 105 deletions

View file

@ -771,7 +771,10 @@ class OpContour extends CamOp {
printPoint = newPoint(bounds.min.x,bounds.min.y,zmax);
for (let slice of sliceOut) {
if (!slice.camLines) continue;
// ignore debug slices
if (!slice.camLines) {
continue;
}
let polys = [], poly, emit;
slice.camLines.forEach(function (poly) {
if (depthFirst) poly = poly.clone(true);