Navigation

IfcBuild2Axes

Function Semantic Definition
Definition from ISO/CD 10303-42:1992: This function returns two orthogonal directions. U[1] is in the direction of RefDirection and U[2] is perpendicular to U[1]. A default value of (1.0,0.0,0.0) is supplied for RefDirection if the input data is incomplete.

NOTE Corresponding STEP function build_2axes, new function in IFC Release 1.5. Please refer to ISO/IS 10303-42:1994, p. 100 for the final definition of the formal standard.

EXPRESS specification:

FUNCTION IfcBuild2Axes
  (RefDirection : IfcDirection)
    : LIST [2:2] OF IfcDirection;
LOCAL
  D : IfcDirection := NVL(IfcNormalise(RefDirection),
      IfcRepresentationItem() || IfcGeometricRepresentationItem () || IfcDirection([1.0,0.0]));
END_LOCAL;
  RETURN([D, IfcOrthogonalComplement(D)]);
END_FUNCTION;