Skip to main content

Module swept

Module swept 

Source
Expand description

IfcSweptSurface: a surface made by moving a profile.

Covers IfcSurfaceOfLinearExtrusion and IfcSurfaceOfRevolution.

§SweptCurve is an IfcProfileDef, not an IfcCurve

This is the trap. The attribute is named for a curve and typed as a profile, and an IfcProfileDef carries a ProfileType of AREA or CURVE. Only the outer curve of the profile is swept – a swept surface is a surface, not a solid, so an AREA profile’s inner voids contribute nothing. A consumer that hands the profile to the same code path used for IfcExtrudedAreaSolid will build a solid where the file described a shell.

§Position is optional and its absence is not the identity

The profile is defined in its own 2D coordinate system; Position places that system in 3D. When absent the profile’s XY plane coincides with the containing representation’s XY plane. Treating an absent Position as an error rejects valid files; treating it as “no transform at all” is right only because the default is the identity in the parent’s space.

§Revolution: axis, not direction

AxisPosition is an IfcAxis1Placement – a point plus a direction. Both halves matter: revolving about a line through the origin gives a different surface from revolving about a parallel line one metre away. Code that reads only the direction produces a surface of the right shape in the wrong place, which is much harder to notice than a missing surface.

Structs§

SurfaceOfLinearExtrusion
A borrowed view of an IfcSurfaceOfLinearExtrusion.
SurfaceOfRevolution
A borrowed view of an IfcSurfaceOfRevolution.