International Organization for Standardization

ISO 16739-1:2024(E)

8.9.6.24 IfcSegmentDim

8.9.6.24.1 Semantic definition

This function checks the dimensionality of the various subtypes of IfcSegment.

Returns the dimensionality of the ParentCurve.

8.9.6.24.2 Formal representation

FUNCTION IfcSegmentDim
 (Segment : IfcSegment)
 : IfcDimensionCount;

  IF ('IFC4X3_ADD2.IFCCURVESEGMENT' IN TYPEOF(Segment))
    THEN RETURN(Segment\IfcCurveSegment.ParentCurve.Dim);
  END_IF;
  IF ('IFC4X3_ADD2.IFCCOMPOSITECURVESEGMENT' IN TYPEOF(Segment))
    THEN RETURN(Segment\IfcCompositeCurveSegment.ParentCurve.Dim);
  END_IF;
  RETURN (?);

END_FUNCTION;

8.9.6.24.3 References

8.9.6.24.4 Changelog

8.9.6.24.4.1 ISO 16739-1:2023

  • New resource