1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-09 08:16:50 +02: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

View File

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