Просмотр исходного кода

abs warning

Former-commit-id: fd508ffce4b61ff791a786ad70b705afea1354d9
Alec Jacobson 10 лет назад
Родитель
Сommit
ed153a8b84
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/igl/mvc.cpp

+ 1 - 1
include/igl/mvc.cpp

@@ -153,7 +153,7 @@ IGL_INLINE void igl::mvc(const Eigen::MatrixXd &V, const Eigen::MatrixXd &C, Eig
         // handled that)
         // domain vertex j is on the segment from i to i+1 if the distances from vj to
         // pi and pi+1 are about 
-        if(abs((dist_C_V(i,j) + dist_C_V_next) / edge_length - 1) < EPS)
+        if(std::abs((dist_C_V(i,j) + dist_C_V_next) / edge_length - 1) < EPS)
           on_segment.push_back(std::make_pair(j,i));
       
     }