mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
Use taxonomy::matrix4 instead of Eigen::Matrix4d in profile helper which has default constructor to identity
This commit is contained in:
@@ -85,14 +85,13 @@ taxonomy::item* mapping::map_impl(const IfcSchema::IfcLShapeProfileDef* inst) {
|
||||
xy = (a1*c2 - a2*c1) / det;
|
||||
}
|
||||
|
||||
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