IFC 4.3.2.20240809 (IFC4X3_ADD2) under development

8.18.6.4 IfcTopologyRepresentationTypes

8.18.6.4.1 Semantic definition

The function gets the topology representation type and the assigned set of representation items as input and verifies whether the correct items are assigned according to the representation type given.

8.18.6.4.2 Formal representation

FUNCTION IfcTopologyRepresentationTypes
(RepType : IfcLabel; Items : SET OF IfcRepresentationItem) : LOGICAL;
    
    LOCAL
      Count : INTEGER := 0;
    END_LOCAL;

    CASE RepType OF 
    'Vertex' :
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_20bdb3d.IFCVERTEX' IN TYPEOF(temp))));
      END;
    'Edge' : 
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_20bdb3d.IFCEDGE' IN TYPEOF(temp))));
      END;
    'Path' : 
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_20bdb3d.IFCPATH' IN TYPEOF(temp))));
      END;
    'Face' : 
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_20bdb3d.IFCFACE' IN TYPEOF(temp))));
      END;
    'Shell' :
      BEGIN
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_20bdb3d.IFCOPENSHELL' IN TYPEOF(temp))
                    OR ('IFC4X3_DEV_20bdb3d.IFCCLOSEDSHELL' IN TYPEOF(temp))));
      END;
    'Undefined': RETURN(TRUE);
     OTHERWISE : RETURN(?);
    END_CASE;
    RETURN (Count = SIZEOF(Items));

END_FUNCTION;

8.18.6.4.3 References

Edit on Github


Is this page difficult to understand? Let us know!