mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 14:02:27 +00:00
try catch convert_placement()
This commit is contained in:
@@ -507,10 +507,15 @@ public:
|
|||||||
|
|
||||||
virtual bool convert_placement(IfcUtil::IfcBaseClass* item, gp_Trsf& trsf) {
|
virtual bool convert_placement(IfcUtil::IfcBaseClass* item, gp_Trsf& trsf) {
|
||||||
if (item->as<IfcSchema::IfcObjectPlacement>()) {
|
if (item->as<IfcSchema::IfcObjectPlacement>()) {
|
||||||
return convert(item->as<IfcSchema::IfcObjectPlacement>(), trsf);
|
try {
|
||||||
} else {
|
return convert(item->as<IfcSchema::IfcObjectPlacement>(), trsf);
|
||||||
return false;
|
} catch (std::exception& e) {
|
||||||
|
Logger::Error(e, item);
|
||||||
|
} catch (...) {
|
||||||
|
Logger::Error("Failed processing placement", item);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user