Skip to main content

classify_point_robust

Function classify_point_robust 

Source
pub fn classify_point_robust(
    topo: &Topology,
    solid: SolidId,
    point: Point3,
    deflection: f64,
    tolerance: f64,
) -> Result<PointClassification, OperationsError>
Expand description

Robust point classification combining winding numbers and ray casting.

Tries generalized winding numbers first (more robust to mesh defects), then falls back to analytic ray casting if the winding number is ambiguous (within 0.1 of the 0.5 threshold).

ยงErrors

Returns an error if the solid or its faces are invalid.