Debug logs during SLA processing

This commit is contained in:
tamasmeszaros 2019-01-02 11:52:15 +01:00
parent 611d9aa0d8
commit abf34c3b6d
2 changed files with 12 additions and 2 deletions

View file

@ -192,7 +192,6 @@ PointSet normals(const PointSet& points, const EigenMesh3D& emesh,
auto lend = std::unique(neighnorms.begin(), neighnorms.end(),
[](const Vec3d& n1, const Vec3d& n2) {
// Compare normals for equivalence. This is controvers stuff.
// We will go for the third significant digit precision.
auto deq = [](double a, double b) { return std::abs(a-b) < 1e-3; };
return deq(n1(X), n2(X)) && deq(n1(Y), n2(Y)) && deq(n1(Z), n2(Z));
});