1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 13:01:37 +02:00
This commit is contained in:
Justin Lin
2020-11-30 08:12:27 +08:00
parent 483f204f70
commit ecedb79988
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
use <_impl/_catmull_rom_spline.scad>; 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)) let(leng = len(points))
concat( concat(
[ [
@@ -14,7 +14,7 @@ function catmull_rom_spline(t_step, points, tightness = 0) =
); );
/* /*
use <catmull_rom_spline.scad>; use <curve.scad>;
use <hull_polyline3d.scad>; use <hull_polyline3d.scad>;
pts = [ pts = [
@@ -33,7 +33,7 @@ pts = [
t_step = 0.1; t_step = 0.1;
tightness = 0; tightness = 0;
points = catmull_rom_spline(t_step, pts, tightness); points = curve(t_step, pts, tightness);
hull_polyline3d(points, 5); hull_polyline3d(points, 5);
*/ */

View File

@@ -8,6 +8,6 @@ next:
- vx_contour - vx_contour
- polygon_hull - polygon_hull
- polyhedron_hull - polyhedron_hull
- catmull_rom_spline - curve
- bauer_spiral - bauer_spiral
- fibonacci_lattice - fibonacci_lattice