Skip to main content

create_fill_area_style_hatching

Function create_fill_area_style_hatching 

Source
pub fn create_fill_area_style_hatching(
    tx: &mut Transaction,
    model: &Model,
    schema: &Schema,
    appearance: EntityId,
    distance: HatchLineDistance,
    reference: (Option<EntityId>, Option<EntityId>),
    angle: f64,
) -> StyleResult<EntityId>
Expand description

Stage an IfcFillAreaStyleHatching.

One family of parallel hatch lines. HatchLineAngle is in the project’s plane angle unit (IfcPlaneAngleMeasure); StyleIndex::material_fill converts it with StyleUnits.

§Errors

Refuses a non-positive or non-finite line distance, a non-finite angle, and a reference of the wrong type – including a point that is not 2D, which PatternStart2D and RefHatchLine2D require.