condensed poly loops into one
This commit is contained in:
parent
96b36adbb3
commit
9290b7f7a7
1 changed files with 2 additions and 2 deletions
|
|
@ -707,8 +707,8 @@ class OpOutline extends CamOp {
|
|||
let polys = [], t = [], c = [];
|
||||
let lines =POLY.flatten(slice.camLines)
|
||||
// console.log(lines);
|
||||
lines.forEach(l =>{ if(l.order == undefined) l.order = 0; });
|
||||
lines.forEach(function (poly) {
|
||||
lines.forEach((poly)=> {
|
||||
poly.order = poly.order ?? 0;
|
||||
let child = poly.parent;
|
||||
if (depthFirst) { poly = poly.clone(); poly.parent = child ? 1 : 0 }
|
||||
if (child) c.push(poly); else t.push(poly);
|
||||
|
|
|
|||
Loading…
Reference in a new issue