Fixing bugs

This commit is contained in:
Richard Brice
2023-11-15 07:20:09 -08:00
parent d5fbc72537
commit f204135aa6
3 changed files with 56 additions and 34 deletions
@@ -52,8 +52,15 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSegmentedReferenceCurve* ins
auto composition = [gradient, cant](double u)->Eigen::Matrix4d {
auto xyz = gradient->evaluate(u);
auto c = cant->evaluate(u);
// when cant results are combined with the gradient curve
// the x-location will be added which doubles them
// for this reason, set x location to 0
c.col(3)(0) = 0;
std::swap(c.col(3)(1),c.col(3)(2));
std::swap(c.col(3)(1), c.col(3)(2));
//c.col(0).swap(c.col(1));
Eigen::Matrix4d m;
m = xyz * c;
return m;