Skip to main content

interpolate_curve_closed

Function interpolate_curve_closed 

Source
pub fn interpolate_curve_closed(
    points: &[Vec3],
    parameters: &[f64],
) -> Result<NurbsCurve, String>
Expand description

EXACT closed (periodic) cubic interpolation. points are the S >= 4 distinct stations (first NOT repeated); parameters has S+1 strictly increasing values whose last entry closes the period. The cyclic collocation system is solved densely (S is small for lofts), and the periodic B-spline is re-expressed in CLAMPED form by Boehm-inserting the domain ends to full multiplicity — the representation every kernel consumer expects — so the seam is C² by construction, not by welding.