Skip to main content

classify_point

Function classify_point 

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

Classify a point relative to a solid using analytic ray casting.

Uses three irrational ray directions for majority-vote consensus. If the first two agree, the third is skipped. If all three disagree (very rare — indicates grazing rays), perturbed recovery directions are tried.

§Errors

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