diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-08-18 20:28:36 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-08-18 20:28:36 (GMT) |
commit | 9f6819e68501de16563aeaaadd65dfc915092169 (patch) | |
tree | 26beade954d4748b44ec303e2fd2e12584abe885 /src/linalg.h | |
parent | 8740ac3574c5249c9c22f5436d3b14f4f0563a66 (diff) |
initial rework to enable eigen3 per issue #174.
1. enable eigen3 in qmake build system
2. convert Transform3d and cwise() per the eigen2->eigen3 porting faq online
3. get rid of 'using namespace boost::filesystem' as it conflicts with eigen3
Diffstat (limited to 'src/linalg.h')
-rw-r--r-- | src/linalg.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/linalg.h b/src/linalg.h index 65243dc..eb3d22d 100644 --- a/src/linalg.h +++ b/src/linalg.h @@ -12,7 +12,11 @@ typedef Eigen::AlignedBox<double, 3> BoundingBox; using Eigen::Matrix3f; using Eigen::Matrix3d; using Eigen::Matrix4d; -using Eigen::Transform3d; +#if EIGEN_WORLD_VERSION>=3 +#define Transform3d Eigen::Affine3d +#else +using Eigen::Transform3d +#endif BoundingBox operator*(const Transform3d &m, const BoundingBox &box); |