其他分享
首页 > 其他分享> > IfcGetBasisSurface

IfcGetBasisSurface

作者:互联网

IfcGetBasisSurface

函数定义

注:根据ISO/CD 10303-42:1992的定义

此函数用于将曲线的基础曲面作为一组曲面返回。对于不是曲面上曲线的曲线,将返回一个空集。

注:根据ISO 10303-42中定义的get_基准面调整的函数。

IFC1.5中增加的新功能

 

EXPRESS Specification

FUNCTION IfcGetBasisSurface
(C : IfcCurveOnSurface) : SET[0:2] OF IfcSurface;

  LOCAL
    Surfs : SET[0:2] OF IfcSurface;
    N : INTEGER;
  END_LOCAL;

  Surfs := [];
  IF 'IFCGEOMETRYRESOURCE.IFCPCURVE' IN TYPEOF (C) THEN
    Surfs := [C\IfcPCurve.BasisSurface];
  ELSE
    IF 'IFCGEOMETRYRESOURCE.IFCCOMPOSITECURVEONSURFACE' IN TYPEOF (C) THEN

    (* For an IfcCompositeCurveOnSurface the BasisSurface is the intersection
       of the BasisSurface of all the segments. *)

    N := SIZEOF(C\IfcCompositeCurve.Segments);
    Surfs := IfcGetBasisSurface(C\IfcCompositeCurve.Segments[1].ParentCurve);
    
      IF N > 1 THEN
        REPEAT i := 2 TO N;
          Surfs := Surfs * IfcGetBasisSurface(C\IfcCompositeCurve.Segments[1].ParentCurve);
        END_REPEAT;
      END_IF;
    END_IF;
  END_IF;
  RETURN(Surfs);
END_FUNCTION;

 

 

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

标签:END,Segments,BasisSurface,IfcGetBasisSurface,Surfs,IfcCompositeCurve
来源: https://www.cnblogs.com/herd/p/15627358.html