Skip to main content

create_layer

Function create_layer 

Source
pub fn create_layer(
    tx: &mut Transaction,
    model: &Model,
    draft: LayerDraft<'_>,
) -> MaterialResult<EntityId>
Expand description

Stage a layer after checking its scalar and material-reference invariants.

ยงErrors

Refuses a non-finite or negative thickness (zero too for IFC2X3), a priority outside 0..=100, a material that is not an IfcMaterial, and for IFC2X3 any name, description, category or priority (MaterialError::AuthoringNotInSchema).