From e6c1afcece53033170015285f66c8e38fc332281 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Mon, 22 Apr 2024 14:39:12 -0700 Subject: [PATCH] Fixed bug in path_merge_collinear() --- paths.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/paths.scad b/paths.scad index 5742a00..a439819 100644 --- a/paths.scad +++ b/paths.scad @@ -149,6 +149,7 @@ function path_merge_collinear(path, closed, eps=EPSILON) = assert( is_path(path), "Invalid path in path_merge_collinear." ) assert( is_undef(eps) || (is_finite(eps) && (eps>=0) ), "Invalid tolerance." ) len(path)<=2 ? path : + let(path = deduplicate(path, closed=closed)) [ if(!closed) path[0], for(triple=triplet(path,wrap=closed))