From 7af202f5e53f16b0d708ebb13676b9c82e621bc0 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sat, 9 Apr 2022 18:54:01 +0800 Subject: [PATCH] refactor: don't repeat it --- src/experimental/convex_intersection.scad | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/experimental/convex_intersection.scad b/src/experimental/convex_intersection.scad index 81d26383..a228f9ee 100644 --- a/src/experimental/convex_intersection.scad +++ b/src/experimental/convex_intersection.scad @@ -14,10 +14,4 @@ function convex_intersection(shape1, shape2, epsilon = 0.0001) = [for(i = [0:leng - 1]) each _intersection_ps(shape2, [pts[i], pts[i + 1]], epsilon)] ) ) - convex == [] ? [] : convex_ct_clk_order( - concat( - [for(p = shape1) if(in_shape(shape2, p, include_edge = true)) p], - [for(p = shape2) if(in_shape(shape1, p, include_edge = true)) p], - [for(i = [0:leng - 1]) each _intersection_ps(shape2, [pts[i], pts[i + 1]], epsilon)] - ) - ); \ No newline at end of file + convex == [] ? [] : convex_ct_clk_order(convex); \ No newline at end of file