Fixed bug reversing result of is_nan(), causing normals vectors to sometime be exported as 0 0 0. Fixes #1317

This commit is contained in:
Marius Kintel 2015-04-21 01:33:25 -04:00
parent 728a114594
commit 167b8825f7

View file

@ -29,7 +29,7 @@ template<typename Derived> bool is_finite(const Eigen::MatrixBase<Derived>& x) {
}
template<typename Derived> bool is_nan(const Eigen::MatrixBase<Derived>& x) {
return ((x.array() == x.array())).all();
return !((x.array() == x.array())).all();
}
BoundingBox operator*(const Transform3d &m, const BoundingBox &box);