fix open traces in slice and resulting empty top slices. do not offset open polys in expand()

This commit is contained in:
Stewart Allen 2020-11-17 00:45:34 -05:00
commit 8ac7d3b89a
8 changed files with 49 additions and 9 deletions

View file

@ -466,6 +466,9 @@
* in FDM mode and uncleared areas in CAM mode.
*/
function offset(polys, dist, options) {
// do not offset open lines
polys = polys.filter(p => !p.open);
// cause inner / outer polys to be reversed from each other
alignWindings(polys);
polys.forEach(function(poly) {