private void processRepresentation(IfcProduct product, IfcRepresentation representation) { if (representation instanceof IfcPresentationLayerAssignment) { IfcPresentationLayerAssignment presentationLayerAssignment = (IfcPresentationLayerAssignment)representation; for (IfcLayeredItem layeredItem : presentationLayerAssignment.getAssignedItems()) { if (layeredItem instanceof IfcRepresentation) { processRepresentation(product, (IfcRepresentation) layeredItem); } else if (layeredItem instanceof IfcRepresentationItem) { processRepresentationItem(product, representation, (IfcRepresentationItem) layeredItem); } } } else if (representation instanceof IfcStyleModel) { } else if (representation instanceof IfcShapeModel) { } else if (representation instanceof IfcTopologyRepresentation) { } for (IfcRepresentationMap representationMap : representation.getRepresentationMap()) { for (IfcMappedItem mappedItem : representationMap.getMapUsage()) { if (mappedItem instanceof IfcRepresentationItem) { processRepresentationItem(product, representation, mappedItem); } } } for (IfcRepresentationItem representationItem : representation.getItems()) { processRepresentationItem(product, representation, representationItem); } }
if ("Curve2D".equals(ifcRepresentation.getRepresentationType())) {