Simplify IfcFixedReferenceSweptAreaSolid position check logic

This commit is contained in:
krande
2025-08-27 11:52:56 +02:00
parent 6d9650e826
commit 8420b98f3f
@@ -116,10 +116,7 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcFixedReferenceSweptAreaSolid
} }
} else { } else {
taxonomy::matrix4::ptr matrix; taxonomy::matrix4::ptr matrix;
bool has_position = true; if (inst->Position() != nullptr) {
has_position = inst->Position() != nullptr;
auto pos = inst->Position();
if (has_position) {
matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position())); matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position()));
} }
// TODO: Implement handling for non-alignment curves using sweep_along_curve // TODO: Implement handling for non-alignment curves using sweep_along_curve