Skip to main content

recognize_surface

Function recognize_surface 

Source
pub fn recognize_surface(
    surface: &NurbsSurface,
    tolerance: f64,
) -> RecognizedSurface
Expand description

Attempt to recognize a NURBS surface as an elementary analytic surface.

Tries recognition in order: plane, cylinder, sphere, cone. Returns the first match whose maximum sample deviation is within tolerance. Cylinder is tested before cone so that constant-radius surfaces are classified as Cylinder, not as Cone with apex at infinity.