Expand description
IfcGetBasisSurface: the surfaces a curve-on-surface lies on.
§A curve-on-surface reaches its surface three different ways
- an
IfcPcurvenames itsBasisSurfacedirectly; - an
IfcSurfaceCurvecollects one surface per associated p-curve (this isIfcAssociatedSurface, which is just that field read); - an
IfcCompositeCurveOnSurfaceintersects what its segments carry.
§A schema erratum in the composite branch
The normative body loops Segments[1] rather than Segments[i]:
Surfs := IfcGetBasisSurface(C\IfcCompositeCurve.Segments[1].ParentCurve);
IF N > 1 THEN
REPEAT i := 2 TO N;
Surfs := Surfs * IfcGetBasisSurface(C\IfcCompositeCurve.Segments[1].ParentCurve);
END_REPEAT;
END_IF;Intersecting segment one with itself is the identity, so read literally
the loop can never narrow the set and the rule it feeds (SameSurface)
becomes unfalsifiable. The prose directly above the loop states the
intent: “the BasisSurface is the intersection of the BasisSurface of all
the segments”. This module implements that stated intent, so
SameSurface can actually fail on a composite curve whose segments sit
on different surfaces.
Functions§
- basis_
surfaces - The surfaces
curvelies on, perIfcGetBasisSurface.