pub fn create_constituent(
tx: &mut Transaction,
model: &Model,
draft: ConstituentDraft<'_>,
) -> MaterialResult<EntityId>Expand description
Stage an IfcMaterialConstituent. IFC4 onwards.
Fraction is an IfcNormalisedRatioMeasure: values outside 0..=1 are
refused because a constituent cannot be a negative or >100% share of its
set, and a wrong fraction silently misstates a composition.