Skip to main content

sample_plane_analytic

Function sample_plane_analytic 

Source
pub fn sample_plane_analytic(
    surface: AnalyticSurface<'_>,
    normal: Vec3,
    d: f64,
) -> Result<Vec<Vec<Point3>>, MathError>
Expand description

Sample points on the plane-analytic intersection without NURBS curve fitting.

Returns chains of ordered 3D sample points. Each chain is one connected component of the intersection curve. This is much faster than intersect_plane_analytic when only sample points are needed (e.g. for boolean intersection segment generation).

ยงErrors

Returns an error if the intersection computation fails.