IfcBuildAxes

注:定义符合ISO/CD 10303-42:1992
此函数构建并返回三个标准化正交方向。u[3]是轴的方向。u[1]是在参考方向投影到垂直于u[3]的平面上的方向,u[2]是u[3]和u[1]的叉积。如果输入数据不完整,则提供默认值。
注:功能改编自ISO 10303-42中定义的构建轴。
IFC1.5中新增函数

EXPRESS Specification

FUNCTION IfcBuildAxes
  (Axis, RefDirection : IfcDirection) 
    : LIST [3:3] OF IfcDirection;
LOCAL
  D1, D2 : IfcDirection;
END_LOCAL;
  D1 := NVL(IfcNormalise(Axis), IfcRepresentationItem() || IfcGeometricRepresentationItem () || IfcDirection([0.0,0.0,1.0]));
  D2 := IfcFirstProjAxis(D1, RefDirection);
  RETURN ([D2, IfcNormalise(IfcCrossProduct(D1,D2))IfcVector.Orientation, D1]); 
END_FUNCTION;
QQ 3087438119
原文地址:https://www.cnblogs.com/herd/p/14426735.html