Skip to main content

Module offset

Module offset 

Source
Expand description

Curves defined relative to another curve or to a surface.

Covers IfcOffsetCurve2D, IfcOffsetCurve3D, IfcPcurve and IfcSurfaceCurve (with its IfcIntersectionCurve and IfcSeamCurve subtypes).

§Why offsets are not just “the same curve, moved”

An offset curve is not a translation. Every point moves perpendicular to the basis curve’s local tangent, so where the basis curve bends more tightly than the offset distance the result self-intersects or vanishes. That is why both offset entities carry SelfIntersect and why this module surfaces it rather than dropping it: it is the file’s only warning that offsetting will not produce a simple curve.

§The 2D/3D asymmetry

IfcOffsetCurve2D has no reference direction: in the plane, “perpendicular to the tangent” is unambiguous up to sign, and the sign comes from the Distance value. IfcOffsetCurve3D needs RefDirection because in space there is a whole circle of perpendiculars, and the offset direction is RefDirection cross tangent. A consumer that treats the two entities identically will place a 3D offset anywhere on that circle.

§IfcSurfaceCurve carries the same curve twice

Curve3D and AssociatedGeometry (one or two IfcPcurves) describe the same curve in different spaces, and they will not agree exactly. MasterRepresentation says which one to believe. It matters most on a seam curve, where the two p-curves are the two sides of a periodic surface’s seam and picking the wrong one puts an edge on the far side of a cylinder.

Structs§

OffsetCurve2D
A borrowed view of an IfcOffsetCurve2D.
OffsetCurve3D
A borrowed view of an IfcOffsetCurve3D.
PCurve
A borrowed view of an IfcPcurve.
SurfaceCurve
A borrowed view of an IfcSurfaceCurve and its subtypes.

Enums§

PreferredSurfaceCurveRepresentation
IfcPreferredSurfaceCurveRepresentation: which copy of the curve wins.
SurfaceCurveKind
Which IfcSurfaceCurve subtype an entity is.