IFC 4.3.0.1 (IFC4X3) 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_70ce626d.IFCVERTEX' IN TYPEOF(temp))));
      END;
    'Edge' : 
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_70ce626d.IFCEDGE' IN TYPEOF(temp))));
      END;
    'Path' : 
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_70ce626d.IFCPATH' IN TYPEOF(temp))));
      END;
    'Face' : 
      BEGIN 
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_70ce626d.IFCFACE' IN TYPEOF(temp))));
      END;
    'Shell' :
      BEGIN
        Count := SIZEOF(QUERY(temp <* Items | 
                  ('IFC4X3_DEV_70ce626d.IFCOPENSHELL' IN TYPEOF(temp))
                    OR ('IFC4X3_DEV_70ce626d.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!