码迷,mamicode.com
首页 > 其他好文 > 详细

IfcRepresentationContextSameWCS

时间:2021-07-06 16:23:39      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:sys   rgba   axis2   code   pre   res   log   sdi   lse   

 

 

RULE IfcRepresentationContextSameWCS FOR ( IfcGeometricRepresentationContext );
LOCAL
  IsDifferent  : LOGICAL := FALSE;
END_LOCAL;
  IF (SIZEOF(IfcGeometricRepresentationContext) > 1)
  THEN
    REPEAT i := 2 TO HIINDEX(IfcGeometricRepresentationContext);
      IF (IfcGeometricRepresentationContext[1].WorldCoordinateSystem :<>: IfcGeometricRepresentationContext[i].WorldCoordinateSystem)
      THEN
        IsDifferent := (NOT(IfcSameValidPrecision(IfcGeometricRepresentationContext[1].Precision,
                                                  IfcGeometricRepresentationContext[i].Precision)))
                    OR (NOT(IfcSameAxis2Placement(IfcGeometricRepresentationContext[1].WorldCoordinateSystem,
                                                  IfcGeometricRepresentationContext[i].WorldCoordinateSystem,
                                                  IfcGeometricRepresentationContext[1].Precision)));
        IF (IsDifferent = TRUE) THEN
          ESCAPE;
        END_IF;
      END_IF;
    END_REPEAT;
  END_IF;
    WHERE
     WR1 : IsDifferent = FALSE
END_RULE;

 

 

 

 

 

 

 

######

IfcRepresentationContextSameWCS

标签:sys   rgba   axis2   code   pre   res   log   sdi   lse   

原文地址:https://www.cnblogs.com/herd/p/14974173.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有
迷上了代码!