IfcCorrectLocalPlacement

IfcCorrectLocalPlacement

函数定义:

该函数检查3D局部放置的相对放置(即相对于另一个局部放置,而不是网格放置)必须相对于3D父放置(而不是2D父放置)。历史:IFC2x第2版中的新功能。

 

EXPRESS Specification

FUNCTION IfcCorrectLocalPlacement
  (AxisPlacement:IfcAxis2Placement;
   RelPlacement : IfcObjectPlacement):LOGICAL;

  IF (EXISTS(RelPlacement)) THEN
    IF ('IFCGEOMETRICCONSTRAINTRESOURCE.IFCGRIDPLACEMENT' IN TYPEOF(RelPlacement)) THEN
      RETURN(?);
    END_IF;
    IF ('IFCGEOMETRICCONSTRAINTRESOURCE.IFCLOCALPLACEMENT' IN TYPEOF(RelPlacement)) THEN
      IF ('IFCGEOMETRYRESOURCE.IFCAXIS2PLACEMENT2D' IN TYPEOF(AxisPlacement)) THEN
        RETURN(TRUE);
      END_IF;
      IF ('IFCGEOMETRYRESOURCE.IFCAXIS2PLACEMENT3D' IN TYPEOF(AxisPlacement)) THEN
        IF (RelPlacement\IfcLocalPlacement.RelativePlacement.Dim = 3) THEN
          RETURN(TRUE);
        ELSE
          RETURN(FALSE);
        END_IF;
      END_IF;
    END_IF;
  ELSE
    RETURN(TRUE);  
  END_IF;
  RETURN(?);
END_FUNCTION;

 

####################

posted @ 2022-09-14 13:22  西北逍遥  阅读(16)  评论(0编辑  收藏  举报