List: discuss@lists.openscad.org
From: John David
NURBS length review and comments
Thu, Feb 6, 2025 9:42 PM
.
//
// returns: the estimated spline length whose nurb_curve splinesteps
// and splinesteps*2 by less than eps percent.
function nurbs_len(control,degree,splinesteps=4,
u, mult, weights, type="clamped", knots,
eps=0.0001, _priorlen=0) =
let (
pts = nurbs_curve(control,degree, splinesteps,
u, mult, weights, type, knots),
slen = _lsum(pts