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