Avoid ambiguous call of std::abs.

This commit is contained in:
Robert Kloefkorn 2017-02-07 11:33:57 +01:00
parent 72a9827c8a
commit 5579caaa66

View File

@ -326,7 +326,7 @@ private:
for (unsigned i = 0; i < areaNormal.size(); ++i)
val += areaNormal[i]*distance[i];
halfTrans *= std::abs<Scalar>(val);
halfTrans *= std::abs(val);
halfTrans /= distance.two_norm2();
}