use of org.bimserver.models.ifc2x3tc1.IfcRepresentation in project BIMserver by opensourceBIM.
the class IfcUtils method dumpRepresentationInfo.
public static String dumpRepresentationInfo(IfcProduct ifcProduct) {
StringBuilder sb = new StringBuilder();
sb.append("Dumping representation info for " + ifcProduct.eClass().getName() + "\n");
IfcProductRepresentation representation = ifcProduct.getRepresentation();
for (IfcRepresentation ifcRepresentation : representation.getRepresentations()) {
sb.append("\t" + ifcRepresentation.eClass().getName() + "\n");
if (ifcRepresentation instanceof IfcShapeRepresentation) {
IfcShapeRepresentation ifcShapeRepresentation = (IfcShapeRepresentation) ifcRepresentation;
sb.append("\t\tRepresentationIdentifier: " + ifcShapeRepresentation.getRepresentationIdentifier() + "\n");
sb.append("\t\tRepresentationType: " + ifcShapeRepresentation.getRepresentationType() + "\n");
}
for (IfcRepresentationItem ifcRepresentationItem : ifcRepresentation.getItems()) {
sb.append("\t\t" + ifcRepresentationItem.eClass().getName() + "\n");
}
}
return sb.toString();
}
Aggregations