Skip to main content

lower_surface_curve_swept_area_solid_node

Function lower_surface_curve_swept_area_solid_node 

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

Lower an IfcSurfaceCurveSweptAreaSolid into a SurfaceCurveSweep.

The directrix of this family is a curve that lies on the reference surface. The surface is not decoration: it fixes the sweep’s twist. At any point of the directrix the profile is oriented by the surface normal there, so two solids with identical profiles and identical directrices but different reference surfaces are different solids.

Dropping the surface and treating this as a plain directrix sweep produces a shape with the right footprint and the wrong cross-section rotation – a duct elbow whose flanges twist. That is why the reference surface is lowered and referenced rather than ignored.