1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-19 07:08:04 +01:00

Merge pull request #15 from kniight/patch-1

Update _catmull_rom_spline.scad
This commit is contained in:
Justin Lin 2021-01-09 08:25:36 +08:00 committed by GitHub
commit 825a7b3474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
use <bezier_curve.scad>;
use <../bezier_curve.scad>;
function _catmull_rom_spline_4pts(t_step, points, tightness) =
let(
@ -9,4 +9,4 @@ function _catmull_rom_spline_4pts(t_step, points, tightness) =
v_p2x = points[2] - p2x_0tightness,
p2x = p2x_0tightness + v_p2x * tightness
)
bezier_curve(t_step, [points[1], p1x, p2x, points[2]]);
bezier_curve(t_step, [points[1], p1x, p2x, points[2]]);