From 44feeab7e68d94dcbd1dd0abe459029238d2249b Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Mon, 21 Jun 2021 00:37:31 -0700 Subject: [PATCH] Bugfix for path_self_intersections() with closed paths. --- paths.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/paths.scad b/paths.scad index 2c3a2b3..88d9ec7 100644 --- a/paths.scad +++ b/paths.scad @@ -682,6 +682,7 @@ function path_self_intersections(path, closed=true, eps=EPSILON) = u = ((e.x*c.y)-(e.y*c.x)) / denom ) [a1+t*(a2-a1), t, u] ) if ( + (!closed || i!=0 || j!=plen-1) && isect != undef && isect[1]>=-eps && isect[1]<=1+eps && isect[2]>=-eps && isect[2]<=1+eps