Skip to main content

solid_contains

Function solid_contains 

Source
pub fn solid_contains(
    model: &Model,
    solid_id: SolidId,
    point: Vector3,
    max_nodes: usize,
    epsilon: Scalar,
    seed: u64,
    classified: &mut Classified,
) -> GeopResult<PointClassification>
Expand description

Classify point against the solid solid_id: on its boundary if on any of its shells’, else inside exactly when inside an odd number of them — inside the outer shell and no void, say — for the shells of one solid never cross. Asking each shell alone would put a point in a void inside the solid. Each shell is asked from the nearest point classified already holds for it, if any (see shell_contains_from), and a point found strictly inside or outside a shell is added to it. Other arguments as for shell_contains.