From cf15742a3b2643c68b72511b554190969f785f5c Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Wed, 17 Jul 2019 16:33:08 -0700 Subject: [PATCH] Fixed processing of regions in offset() --- geometry.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] ] ])