8.9.6.17 IfcPointDim
8.9.6.17.1 Semantic definition
This function checks the dimensionality of the various subtypes of IfcPoint.
Returns the number of coordinate components in case of IfcCartesianPoint or the dimensionality of the basis curve or surface in other cases.
8.9.6.17.2 Formal representation
FUNCTION IfcPointDim
(Point : IfcPoint)
: IfcDimensionCount;
IF ('IFC4X3_DEV_7e95fe8.IFCCARTESIANPOINT' IN TYPEOF(Point))
THEN RETURN(HIINDEX(Point\IfcCartesianPoint.Coordinates));
END_IF;
IF ('IFC4X3_DEV_7e95fe8.IFCPOINTBYDISTANCEEXPRESSION' IN TYPEOF(Point))
THEN RETURN(Point\IfcPointByDistanceExpression.BasisCurve.Dim);
END_IF;
IF ('IFC4X3_DEV_7e95fe8.IFCPOINTONCURVE' IN TYPEOF(Point))
THEN RETURN(Point\IfcPointOnCurve.BasisCurve.Dim);
END_IF;
IF ('IFC4X3_DEV_7e95fe8.IFCPOINTONSURFACE' IN TYPEOF(Point))
THEN RETURN(Point\IfcPointOnSurface.BasisSurface.Dim);
END_IF;
RETURN (?);
END_FUNCTION;