diff --git a/geometry.scad b/geometry.scad index b8644f7..a8fc259 100644 --- a/geometry.scad +++ b/geometry.scad @@ -976,10 +976,10 @@ function offset( rgn = exclusive_or([for (p = path) [p]]), pathlist = sort(idx=0,[ for (i=[0:1:len(rgn)-1]) [ - sum([ + sum(concat([0],[ for (j=[0:1:len(rgn)-1]) if (i!=j) point_in_polygon(rgn[i][0],rgn[j])>=0? 1 : 0 - ]), + ])), rgn[i] ] ])