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_DEV_7e95fe8.IFCCURVESEGMENT' IN TYPEOF(Segment))
THEN RETURN(Segment\IfcCurveSegment.ParentCurve.Dim);
END_IF;
IF ('IFC4X3_DEV_7e95fe8.IFCCOMPOSITECURVESEGMENT' IN TYPEOF(Segment))
THEN RETURN(Segment\IfcCompositeCurveSegment.ParentCurve.Dim);
END_IF;
RETURN (?);
END_FUNCTION;