Skip to main content

curve_surface_intersect

Function curve_surface_intersect 

Source
pub fn curve_surface_intersect(
    curve: &NurbCurve<4>,
    surface: &NurbSurface<4>,
    max_solutions: usize,
    max_nodes: usize,
    min_subdivision_size: Scalar,
) -> GeopResult<Intersections<(Scalar, Vector2)>>
Expand description

Points where curve crosses — or, lying on it along an arc, coincides with — surface, under the Intersections contract.

Overlaps are found directly (curve_surface_overlaps) instead of being inferred from a search hitting max_solutions. Without one, the result is Intersections::Found with the clipping search’s crossings (at most max_solutions). With one, it is Intersections::Coincident with, in this order and up to max_solutions in total: the overlaps’ end points, the isolated crossings on the rest of the curve, and points spread evenly over the overlaps. Works on the untrimmed patch. Exhausting max_nodes in any sub-search is an error.