Function interpolate_curve3

pub fn interpolate_curve3(
    points: &[DVec3],
) -> Result<BSplineCurve<DVec3>, GeomError>
Expand description

Interpolate a cubic B-spline through points in order.

The curve passes through every input point. Parameters are assigned by chord length, which keeps the parameterisation proportional to distance – uniform spacing on unevenly spaced points produces visible overshoot.

Fewer than two points cannot define a curve, and repeated coincident points make chord length degenerate, so both are refused.