Skip to main content

children_of

Function children_of 

Source
pub fn children_of(model: &Model, parent: EntityId) -> Vec<EntityId>
Expand description

Direct children of a cost item, in authored order.

Order is preserved: RelatedObjects is a LIST in IfcRelNests, so a file stating [Labour, Plant, Material] means that sequence, and a caller rendering a breakdown should not reorder it.

Only children whose kept parent is parent are listed, each once, so this agrees with parent_of. A child a malformed file also nests elsewhere is listed under its first parent only; see nesting_anomalies.