diff --git a/src/catmull_rom_spline.scad b/src/curve.scad similarity index 81% rename from src/catmull_rom_spline.scad rename to src/curve.scad index 298e374c..8939f416 100644 --- a/src/catmull_rom_spline.scad +++ b/src/curve.scad @@ -1,6 +1,6 @@ use <_impl/_catmull_rom_spline.scad>; -function catmull_rom_spline(t_step, points, tightness = 0) = +function curve(t_step, points, tightness = 0) = let(leng = len(points)) concat( [ @@ -14,7 +14,7 @@ function catmull_rom_spline(t_step, points, tightness = 0) = ); /* -use ; +use ; use ; pts = [ @@ -33,7 +33,7 @@ pts = [ t_step = 0.1; tightness = 0; -points = catmull_rom_spline(t_step, pts, tightness); +points = curve(t_step, pts, tightness); hull_polyline3d(points, 5); */ \ No newline at end of file diff --git a/src/experimental/note.md b/src/experimental/note.md index 816e5f6e..09aa4824 100644 --- a/src/experimental/note.md +++ b/src/experimental/note.md @@ -8,6 +8,6 @@ next: - vx_contour - polygon_hull - polyhedron_hull -- catmull_rom_spline +- curve - bauer_spiral - fibonacci_lattice \ No newline at end of file