mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 18:20:06 +00:00
Simplify IfcFixedReferenceSweptAreaSolid position check logic
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user