Skip to main content

intersect_analytic_analytic

Function intersect_analytic_analytic 

Source
pub fn intersect_analytic_analytic(
    a: AnalyticSurface<'_>,
    b: AnalyticSurface<'_>,
    grid_res: usize,
) -> Result<Vec<IntersectionCurve>, MathError>
Expand description

Intersect two analytic surfaces using a general marching approach.

Seeds intersection points by sampling both parameter spaces on a grid, then marches along the intersection curve using the cross product of the two surface normals as the tangent direction.

ยงErrors

Returns an error if curve fitting fails.