Skip to main content

curve_surface_overlaps

Function curve_surface_overlaps 

Source
pub fn curve_surface_overlaps(
    curve: &NurbCurve<4>,
    surface: &NurbSurface<4>,
    reach: Scalar,
    max_nodes: usize,
    min_subdivision_size: Scalar,
) -> GeopResult<Vec<Overlap<Vector2>>>
Expand description

Every stretch of curve lying on surface (see [coincidence]), or — for a reach above zero — running within reach of it along every axis, with the surface parameters as the partner (see curve_curve::curve_curve_overlaps_and_crossings on reach): the stretches lying on the surface widened by reach (NurbSurface::widen), its boundary curves with it. Candidates are the curve’s ends found on the surface, and where the curve meets the patch’s four boundary curves — through curve_curve::curve_curve_overlaps_and_crossings, so a curve running along a boundary contributes that stretch’s ends. A boundary that isn’t clamped (so its control row isn’t the surface there) contributes no candidates.