mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +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) {
|
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");
|
||||||
return false;
|
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();
|
representation_iterator = representations->begin();
|
||||||
ifcproducts.reset();
|
ifcproducts.reset();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user