mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
Don't terminate on invalid placement location #4883
This commit is contained in:
@@ -27,7 +27,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcAxis1Placement* inst) {
|
|||||||
try {
|
try {
|
||||||
taxonomy::point3::ptr v = taxonomy::cast<taxonomy::point3>(map(inst->Location()));
|
taxonomy::point3::ptr v = taxonomy::cast<taxonomy::point3>(map(inst->Location()));
|
||||||
P = *v->components_;
|
P = *v->components_;
|
||||||
} catch (const std::runtime_error&) {
|
} catch (const std::exception&) {
|
||||||
Logger::Warning("Placement with invalid Location:", inst);
|
Logger::Warning("Placement with invalid Location:", inst);
|
||||||
}
|
}
|
||||||
const bool hasAxis = inst->Axis();
|
const bool hasAxis = inst->Axis();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcAxis2Placement2D* inst) {
|
|||||||
try {
|
try {
|
||||||
taxonomy::point3::ptr v = taxonomy::cast<taxonomy::point3>(map(inst->Location()));
|
taxonomy::point3::ptr v = taxonomy::cast<taxonomy::point3>(map(inst->Location()));
|
||||||
P = *v->components_;
|
P = *v->components_;
|
||||||
} catch (const std::runtime_error&) {
|
} catch (const std::exception&) {
|
||||||
Logger::Warning("Placement with invalid Location:", inst);
|
Logger::Warning("Placement with invalid Location:", inst);
|
||||||
}
|
}
|
||||||
const bool hasRef = !!inst->RefDirection();
|
const bool hasRef = !!inst->RefDirection();
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcAxis2Placement3D* inst) {
|
|||||||
try {
|
try {
|
||||||
taxonomy::point3::ptr v = taxonomy::cast<taxonomy::point3>(map(inst->Location()));
|
taxonomy::point3::ptr v = taxonomy::cast<taxonomy::point3>(map(inst->Location()));
|
||||||
o = *v->components_;
|
o = *v->components_;
|
||||||
} catch (const std::runtime_error&) {
|
} catch (const std::exception&) {
|
||||||
Logger::Warning("Placement with invalid Location:", inst);
|
Logger::Warning("Placement with invalid Location:", inst);
|
||||||
}
|
}
|
||||||
const bool hasAxis = !!inst->Axis();
|
const bool hasAxis = !!inst->Axis();
|
||||||
|
|||||||
Reference in New Issue
Block a user