IfcPointDim

Natural language names
Semantic definitions at the function
Function 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.

HISTORY  New function in IFC4.3.0.1

Formal representations
EXPRESS Specification

FUNCTION IfcPointDim
(Point : IfcPoint)
: IfcDimensionCount;

  IF ('IFCGEOMETRYRESOURCE.IfcCartesianPoint' IN TYPEOF(Point))
    THEN RETURN(HIINDEX(Point\IfcCartesianPoint.Coordinates));
  END_IF;
  IF ('IFCGEOMETRYRESOURCE.IfcPointByDistanceExpression' IN TYPEOF(Point))
    THEN RETURN(Point\IfcPointByDistanceExpression.BasisCurve.Dim);
  END_IF;
  IF ('IFCGEOMETRYRESOURCE.IfcPointOnCurve' IN TYPEOF(Point))
    THEN RETURN(Point\IfcPointOnCurve.BasisCurve.Dim);
  END_IF;
  IF ('IFCGEOMETRYRESOURCE.IfcPointOnSurface' IN TYPEOF(Point))
    THEN RETURN(Point\IfcPointOnSurface.BasisSurface.Dim);
  END_IF;
  RETURN (?);

END_FUNCTION;

Link to this page  Link to this page