Skip to main content

intersect_surfaces

Function intersect_surfaces 

Source
pub fn intersect_surfaces(
    a: &SurfaceGeometry,
    b: &SurfaceGeometry,
    options: IntersectOptions,
    tol: Tolerances,
) -> OgeomResult<SurfaceIntersection>
Expand description

Where two surfaces meet.

The analytic path answers the pairs with closed forms, exactly, with tolerance zero. Every other pair is seeded, traced and fitted to options.tolerance, after a pair without a closed form is first measured for coincidence: two patches lying on one another to within options.tolerance wherever they overlap are Same. One call, and the pair decides the path.

ยงErrors

OgeomError::Construction if the options are unusable. A pair the marcher finds nothing for is Apart, not an error; see that variant for what it can and cannot claim.