mirror of https://github.com/vitalif/openscad
Fixed bug reversing result of is_nan(), causing normals vectors to sometime be exported as 0 0 0. Fixes #1317
parent
728a114594
commit
167b8825f7
|
@ -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) {
|
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);
|
BoundingBox operator*(const Transform3d &m, const BoundingBox &box);
|
||||||
|
|
Loading…
Reference in New Issue