Skip to main content

Module basis

Module basis 

Source
Expand description

IfcGetBasisSurface: the surfaces a curve-on-surface lies on.

§A curve-on-surface reaches its surface three different ways

  • an IfcPcurve names its BasisSurface directly;
  • an IfcSurfaceCurve collects one surface per associated p-curve (this is IfcAssociatedSurface, which is just that field read);
  • an IfcCompositeCurveOnSurface intersects 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 curve lies on, per IfcGetBasisSurface.