Skip to main content

product_representation_frame

Function product_representation_frame 

Source
pub fn product_representation_frame(
    model: &Model,
    units: &UnitScale,
    product: EntityId,
    purpose: RepresentationPurpose,
) -> GeometryResult<Option<Transform>>
Expand description

The frame a product’s representation of purpose is placed in, in metres: the representation context’s WorldCoordinateSystem composed above the product’s placement chain, exactly as lowering and crate::body_description place its items.

Geometry that belongs to the product but is not one of its representation items – a space boundary’s connection surface, which IFC authors in the relating space’s coordinate system – is placed with this frame to land where the product’s body does. Ok(None) when the product has no representation for purpose. TrueNorth is not applied: it states where north lies in model space and moves no coordinate.