International Organization for Standardization

ISO 16739-1:2024(E)

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_ADD2.IFCCARTESIANPOINT' IN TYPEOF(Point))
    THEN RETURN(HIINDEX(Point\IfcCartesianPoint.Coordinates));
  END_IF;
  IF ('IFC4X3_ADD2.IFCPOINTBYDISTANCEEXPRESSION' IN TYPEOF(Point))
    THEN RETURN(Point\IfcPointByDistanceExpression.BasisCurve.Dim);
  END_IF;
  IF ('IFC4X3_ADD2.IFCPOINTONCURVE' IN TYPEOF(Point))
    THEN RETURN(Point\IfcPointOnCurve.BasisCurve.Dim);
  END_IF;
  IF ('IFC4X3_ADD2.IFCPOINTONSURFACE' IN TYPEOF(Point))
    THEN RETURN(Point\IfcPointOnSurface.BasisSurface.Dim);
  END_IF;
  RETURN (?);

END_FUNCTION;

8.9.6.17.3 References

8.9.6.17.4 Changelog

8.9.6.17.4.1 ISO 16739-1:2023

  • New resource