Skip to main content

fit_surface_grid_closed_v_chordal

Function fit_surface_grid_closed_v_chordal 

Source
pub fn fit_surface_grid_closed_v_chordal(
    rows: &[Vec<Point>],
    degree: usize,
    tolerance: f64,
    tol: Tolerances,
) -> OgeomResult<Fitted<BSplineSurface>>
Expand description

As fit_surface_grid_closed_v, parameterized by chord length instead of the centripetal assignment.

The choice matters for dense data: a marched grid samples smooth curves finely but not evenly, and chord length keeps the parameter’s speed uniform across the spacing jumps a march’s closure leaves behind.

§Errors

As fit_surface_grid_closed_v.