Skip to main content

curve_surface_intersect

Function curve_surface_intersect 

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

Points where curve crosses — or, lying on it along an arc, coincides with — surface: the drop-in counterpart of super::curve_surface_bisect::curve_surface_intersect, with the same signature and 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.