Skip to main content

check_containment

Function check_containment 

Source
pub fn check_containment(
    bounding: Tolerance,
    bounded: Tolerance,
) -> OgeomResult<()>
Expand description

Check the containment rule between a bounding entity and what it bounds.

docs/DATA_MODEL.md §5. A vertex must be at least as uncertain as the edge it caps, and an edge at least as uncertain as the face it borders. If it were not, the boundary would not reliably lie on the thing it bounds, and every containment test built on it would be answering about geometry that does not quite meet.

§Errors

OgeomError::Invariant if bounding is tighter than bounded.