Commit 0b10b0a5 authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed more warnings



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16379 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 77b43f17
......@@ -180,7 +180,7 @@ distPointLineSquared( const Vec& _p,
Vec* _min_v )
{
Vec d1(_p-_v0), d2(_v1-_v0), min_v(_v0);
typename Vec::value_type t = (d1|d2)/(d2|d2);
typename Vec::value_type t = (d1|d2)/ d2.sqrnorm();
if (t > 1.0) d1 = _p - (min_v = _v1);
else if (t > 0.0) d1 = _p - (min_v = _v0 + d2*t);
......@@ -820,7 +820,7 @@ rotationOfTwoVectors( const VectorT<Scalar,3>& _v0,
_axis = (v0 % v1).normalize();
// Is nan?
if (_axis != _axis) {
if ( _axis != _axis ) {
return false;
}
......@@ -828,7 +828,7 @@ rotationOfTwoVectors( const VectorT<Scalar,3>& _v0,
_angle = acos(v0 | v1);
// Is nan?
if (_angle != _angle)
if ( std::isnan(_angle) )
_angle = 0.0;
// Convert to degree
......
// Poisson Plugin suppressions
// Plugin-PoissonReconstruction General suppressions
negativeIndex:Plugin-PoissonReconstruction/PoissonReconstruction/BSplineData.h:39
negativeIndex:Plugin-PoissonReconstruction/PoissonReconstruction/BSplineData.h:40
bufferAccessOutOfBounds:Plugin-PoissonReconstruction/PoissonReconstruction/BSplineData.h:41
......@@ -13,3 +13,10 @@ arrayIndexOutOfBounds:Plugin-PoissonReconstruction/PoissonReconstruction/Polynom
negativeIndex:Plugin-PoissonReconstruction/PoissonReconstruction/Polynomial.inl:37
negativeIndex:Plugin-PoissonReconstruction/PoissonReconstruction/Polynomial.inl:75
memsetZeroBytes:Plugin-PoissonReconstruction/PoissonReconstruction/Polynomial.inl
// OpenVolumeMesh: False positives
uselessCallsRemove:libs_required/OpenVolumeMesh/src/OpenVolumeMesh/Core/TopologyKernel.cc:479
uselessCallsRemove:libs_required/OpenVolumeMesh/src/OpenVolumeMesh/Core/TopologyKernel.cc:480
uselessCallsRemove:libs_required/OpenVolumeMesh/src/OpenVolumeMesh/Core/TopologyKernel.cc:507
uselessCallsRemove:libs_required/OpenVolumeMesh/src/OpenVolumeMesh/Core/TopologyKernel.cc:509
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment