laser work

This commit is contained in:
Stewart Allen 2019-05-23 16:52:55 -04:00
commit c1b24f90ea
3 changed files with 16 additions and 4 deletions

View file

@ -59,12 +59,21 @@ var gs_kiri_laser = exports;
}
}
var breakout = true;
var object = [];
slice.tops.forEach(function(top) {
var object = [];
laserOut(top.traces, object);
laserOut(top.innerTraces(), object);
objects.push(object);
if (breakout) {
objects.push(object);
objects = [];
}
});
if (!breakout) {
objects.push(object);
}
};
/**