pub fn openings_of(model: &Model, host: EntityId) -> Vec<EntityId>Expand description
The openings voiding host, in ascending id.
Kernel-free: answering which openings a wall has is a slot read, so this
works under --no-default-features exactly as with the kernel linked. A
relation with a missing or non-reference end is skipped rather than
guessed at; it names no opening this function could return. An opening a
malformed file assigns to two hosts belongs to the first by relation id;
voiding_conflicts reports the other.
use ifc_geometry::openings_of;
use ifc_model::{EntityId, Model};
// A model with no relations has no openings anywhere.
assert!(openings_of(&Model::new(), EntityId(1)).is_empty());