diff --git a/src/surface/sf_solidify_tri.scad b/src/surface/sf_solidifyT.scad similarity index 93% rename from src/surface/sf_solidify_tri.scad rename to src/surface/sf_solidifyT.scad index 6f35b8af..c4f8959f 100644 --- a/src/surface/sf_solidify_tri.scad +++ b/src/surface/sf_solidifyT.scad @@ -4,7 +4,7 @@ use <../util/set/hashset_add.scad>; use <../util/set/hashset_del.scad>; use <../util/set/hashset_elems.scad>; -module sf_solidify_tri(points1, points2, triangles) { +module sf_solidifyT(points1, points2, triangles) { // triangles : counter-clockwise leng = len(points1); assert(leng == len(points2), "The length of points1 must equal to the length of points2"); @@ -59,7 +59,7 @@ use ; use ; use ; -use ; +use ; points = [for(i = [0:50]) rands(-200, 200, 2)]; @@ -77,6 +77,6 @@ for(t = shapes) { pts = [for(p = points) [p[0], p[1], rands(100, 150, 1)[0]]]; pts2 = [for(p = pts) [p[0], p[1], p[2] - 10]]; -sf_solidify_tri(pts, pts2, triangles = indices); +sf_solidifyT(pts, pts2, triangles = indices); */ \ No newline at end of file diff --git a/src/surface/sf_thicken_tri.scad b/src/surface/sf_thickenT.scad similarity index 88% rename from src/surface/sf_thicken_tri.scad rename to src/surface/sf_thickenT.scad index 4fb4b9c3..d5cc5616 100644 --- a/src/surface/sf_thicken_tri.scad +++ b/src/surface/sf_thickenT.scad @@ -2,10 +2,10 @@ use <../util/sort.scad>; use <../util/find_index.scad>; use <../util/slice.scad>; use <../util/sum.scad>; -use <../surface/sf_solidify_tri.scad>; +use <../surface/sf_solidifyT.scad>; use <../triangle/tri_delaunay.scad>; -module sf_thicken_tri(points, thickness, triangles = undef, direction = "BOTH") { +module sf_thickenT(points, thickness, triangles = undef, direction = "BOTH") { // triangles : counter-clockwise real_triangles = is_undef(triangles) ? tri_delaunay([for(p = points) [p[0], p[1]]]) : triangles; @@ -82,17 +82,17 @@ module sf_thicken_tri(points, thickness, triangles = undef, direction = "BOTH") half_thickness = thickness / 2; pts1 = points + vertex_normals * half_thickness; pts2 = points - vertex_normals * half_thickness; - sf_solidify_tri(pts1, pts2, real_triangles); + sf_solidifyT(pts1, pts2, real_triangles); } else if(direction == "FORWARD") { pts1 = points + vertex_normals * thickness; pts2 = points; - sf_solidify_tri(pts1, pts2, real_triangles); + sf_solidifyT(pts1, pts2, real_triangles); } else { pts1 = points; pts2 = points - vertex_normals * thickness; - sf_solidify_tri(pts1, pts2, real_triangles); + sf_solidifyT(pts1, pts2, real_triangles); } } } @@ -103,7 +103,7 @@ use ; use ; use ; -use ; +use ; points = [for(i = [0:50]) rands(-200, 200, 2)]; @@ -120,7 +120,7 @@ for(tri = shapes) { pts = [for(p = points) [p[0], p[1], rands(100, 120, 1)[0]]]; thickness = 5; -sf_thicken_tri(pts, thickness, indices); +sf_thickenT(pts, thickness, indices); */ @@ -129,11 +129,11 @@ use ; use ; use ; -use ; +use ; points = [for(i = [0:50]) rands(-200, 200, 3)]; pts = [for(p = points) [p[0], p[1], rands(100, 120, 1)[0]]]; thickness = 5; -sf_thicken_tri(pts, thickness); +sf_thickenT(pts, thickness); */ \ No newline at end of file