Эх сурвалжийг харах

[curvature] Updated inequality comparison between a double and a float

Former-commit-id: fe511f8b6d3126004aadb6b1399be2bbc97ce93c
Guillaume Jacquenot 7 жил өмнө
parent
commit
7a569a7b9c

+ 1 - 1
include/igl/principal_curvature.cpp

@@ -623,7 +623,7 @@ IGL_INLINE double CurvatureCalculator::getAverageEdge()
 IGL_INLINE void CurvatureCalculator::applyProjOnPlane(const Eigen::Vector3d& ppn, const std::vector<int>& vin, std::vector<int> &vout)
 IGL_INLINE void CurvatureCalculator::applyProjOnPlane(const Eigen::Vector3d& ppn, const std::vector<int>& vin, std::vector<int> &vout)
 {
 {
   for (std::vector<int>::const_iterator vpi = vin.begin(); vpi != vin.end(); ++vpi)
   for (std::vector<int>::const_iterator vpi = vin.begin(); vpi != vin.end(); ++vpi)
-    if (vertex_normals.row(*vpi) * ppn > 0.0f)
+    if (vertex_normals.row(*vpi) * ppn > 0.0)
       vout.push_back(*vpi);
       vout.push_back(*vpi);
 }
 }