Use taxonomy::matrix4 instead of Eigen::Matrix4d in profile helper which has default constructor to identity

This commit is contained in:
Thomas Krijnen
2023-04-10 14:22:27 +02:00
parent 11a515a025
commit 8329a1dea1
14 changed files with 34 additions and 45 deletions
@@ -34,14 +34,13 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcRectangleProfileDef* inst)
return nullptr;
}
Eigen::Matrix4d m4;
taxonomy::matrix4 m4;
bool has_position = true;
#ifdef SCHEMA_IfcParameterizedProfileDef_Position_IS_OPTIONAL
has_position = !!inst->Position();
#endif
if (has_position) {
taxonomy::matrix4 m = as<taxonomy::matrix4>(map(inst->Position()));
m4 = m.ccomponents();
m4 = as<taxonomy::matrix4>(map(inst->Position()));
}
return profile_helper(m4, {