Skip to main content

build_pcurve_on_surface_range

Function build_pcurve_on_surface_range 

Source
pub fn build_pcurve_on_surface_range(
    surface: &NurbsSurface,
    curve: &NurbsCurve,
    edge_start: f64,
    edge_end: f64,
    forward: bool,
    tolerance: f64,
) -> Result<NurbsCurve, String>
Expand description

Build a pcurve for a represented subrange of a larger edge curve.

On an affine carrier the answer is exact and is taken as such ([affine_pcurve_on_range]). Otherwise this samples only the represented interval, which is essential when off-interval control points do not lie on the target carrier — the exact lane restricts the net by knot insertion first, so those control points are removed rather than ignored.