Given a set of control points, the
function returns points of the Bézier path. Combined with the
defined in my lib-openscad, you can create a Bézier curve.
t_step: The distance between two points of the Bézier path.
points: A set of
[x, y, z]control points.
If you have four control points and combine with the
include <hull_polyline3d.scad>; include <bezier_curve.scad>; t_step = 0.05; width = 2; p0 = [0, 0, 0]; p1 = [40, 60, 35]; p2 = [-50, 90, 0]; p3 = [0, 200, -35]; points = bezier_curve(t_step, [p0, p1, p2, p3] ); hull_polyline3d(points, width);