improve performance of pocketed roughing by simplifying pancaked shell

This commit is contained in:
Stewart Allen 2020-05-04 23:00:39 -04:00
commit 051c5d6f7a
5 changed files with 19 additions and 6 deletions

View file

@ -656,7 +656,7 @@ let gs_kiri_slicer = exports;
// emit a polygon if it can be cleaned and still have 2 or more points
function emit(poly) {
poly = poly.clean();
if (poly.length > 2) output.push(poly.clean());
if (poly.length > 2) output.push(poly);
}
// given an array of paths, emit longest to shortest