Use all representations if no representations found through context check

This commit is contained in:
Thomas Krijnen
2018-10-30 12:15:35 +01:00
parent 342cce89d7
commit e64d8750e1
+7 -2
View File
@@ -273,10 +273,15 @@ namespace IfcGeom {
}
if (representations->size() == 0) {
Logger::Message(Logger::LOG_ERROR, "No geometries found");
return false;
Logger::Message(Logger::LOG_ERROR, "No representations encountered in relevant contexts, using all");
representations = ifc_file->entitiesByType<IfcSchema::IfcRepresentation>();
}
if (representations->size() == 0) {
Logger::Message(Logger::LOG_ERROR, "No representations encountered, aborting");
return false;
}
representation_iterator = representations->begin();
ifcproducts.reset();