From e60f5fd932c6ecaf237155cc56a19fbd700c8ed3 Mon Sep 17 00:00:00 2001 From: RonaldoCMP Date: Thu, 4 Nov 2021 12:12:05 +0000 Subject: [PATCH] Update paths.scad --- paths.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paths.scad b/paths.scad index 1c762516..31b55b6a 100644 --- a/paths.scad +++ b/paths.scad @@ -279,7 +279,7 @@ function _path_self_intersections(path, closed=true, eps=EPSILON) = // [a1,a2]. The variable signals is zero when abs(vals[j]-ref) is less than // eps and the sign of vals[j]-ref otherwise. signals = [for(j=[i+2:1:plen-(i==0 && closed? 2: 1)]) - abs(vals[j]-ref) < eps ? 0 : sign(vals[j]-ref) ] + abs(vals[j]-ref) < eps ? 0 : sign(vals[j]-ref) ] ) if(max(signals)>=0 && min(signals)<=0 ) // some remaining edge intersects line [a1,a2] for(j=[i+2:1:plen-(i==0 && closed? 3: 2)])