mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 10:57:49 +00:00
Use taxonomy::matrix4 instead of Eigen::Matrix4d in profile helper which has default constructor to identity
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user