Function interpolate_curve3

Source
pub fn interpolate_curve3(points: &[Point3]) -> GeomResult<BSplineCurve3>
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.