Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
use <../bezier_curve.scad>
function _catmull_rom_spline_4pts(t_step, points, tightness) =
let(
p1 = points[1],
p2 = points[2],
t = (tightness - 1) / 4
)
bezier_curve(t_step,
[
p1,
(points[0] - p2) * t + p1,
(points[3] - p1) * t + p2,
p2
]
);
bb33edfd7This file is pinned to the selected release. Download the original to open it in your design tool.