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
+6 -1
View File
@@ -273,7 +273,12 @@ namespace IfcGeom {
} }
if (representations->size() == 0) { if (representations->size() == 0) {
Logger::Message(Logger::LOG_ERROR, "No geometries found"); 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; return false;
} }