Skip to main content

classify_point_winding

Function classify_point_winding 

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

Classify a point relative to a solid using generalized winding numbers.

More robust than ray casting for imperfect geometry (small gaps, T-junctions). Sums the signed solid angles of triangulated faces and classifies based on the resulting winding number.

ยงErrors

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