mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Use all representations if no representations found through context check
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user