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