Skip to main content

classify_point_robust

Function classify_point_robust 

Source
pub fn classify_point_robust(
    topo: &Topology,
    solid: SolidId,
    point: Point3,
    options: &ClassifyOptions,
) -> Result<PointClassification, CheckError>
Expand description

Robust classification combining winding numbers and ray casting.

Uses winding numbers first, falling back to ray casting when the winding number is ambiguous (between 0.4 and 0.6). This provides the best accuracy for both clean and imperfect geometry.

ยงErrors

Returns an error if the solid or its faces contain invalid topology references.