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 {
taxonomy::matrix4::ptr matrix;
bool has_position = true;
has_position = inst->Position() != nullptr;
auto pos = inst->Position();
if (has_position) {
if (inst->Position() != nullptr) {
matrix = taxonomy::cast<taxonomy::matrix4>(map(inst->Position()));
}
// TODO: Implement handling for non-alignment curves using sweep_along_curve