From 5578c169b08fd3decfa7841ffe9e791610bf31e1 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Wed, 14 Sep 2022 15:30:27 +0800 Subject: [PATCH] rename --- .../{tri_concave_hull.scad => tri_alpha_complex.scad} | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) rename src/experimental/{tri_concave_hull.scad => tri_alpha_complex.scad} (91%) diff --git a/src/experimental/tri_concave_hull.scad b/src/experimental/tri_alpha_complex.scad similarity index 91% rename from src/experimental/tri_concave_hull.scad rename to src/experimental/tri_alpha_complex.scad index 0e961871..a9d54fec 100644 --- a/src/experimental/tri_concave_hull.scad +++ b/src/experimental/tri_alpha_complex.scad @@ -60,12 +60,8 @@ function reduce_tris(indices_tris, dist) = ) len(indices_tris) > len(reduce_tris) ? reduce_tris(reduce_tris, dist) : reduce_tris; - -function tri_concave_hull(points, dist, d) = - let( - indices_tris = is_undef(d) ? tri_delaunay(points) : tri_delaunay_indices(d) - ) - reduce_tris(indices_tris, dist); +function tri_alpha_complex(points, dist, d) = + reduce_tris(is_undef(d) ? tri_delaunay(points) : tri_delaunay_indices(d), dist); dist = 30; seed = 101; @@ -73,7 +69,7 @@ points = [for(i = [0:150]) rands(-100, 100, 2, seed_value = seed + i)]; d = tri_delaunay(points, ret = "DELAUNAY"); convex_hull_tris = tri_delaunay_indices(d); -concave_hull_tris = tri_concave_hull(points, dist, d); +concave_hull_tris = tri_alpha_complex(points, dist, d); for(t = concave_hull_tris) { offset(-.2)