Skip to main content

lower_revolution

Function lower_revolution 

Source
pub fn lower_revolution(
    session: &mut LoweringSession<'_>,
    id: EntityId,
    frame: Transform,
) -> GeometryResult<NodeId>
Expand description

Lower an IfcSurfaceOfRevolution into a revolution relation.

AxisPosition is an IfcAxis1Placement, not the IfcAxis2Placement3D every other surface family uses. Both carry a Location, so reading the wrong one still yields a surface – just one revolved about the wrong line. The axis origin is a length and converts; the direction is placed by the linear part only so an off-origin frame does not translate it.

Position (#547) is composed into the frame for the generatrix and the axis alike.