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

Merge pull request #885 from vskhitkov/fix_point_simplex_squared_distance

Removed minus from assertion

Former-commit-id: 42d676812c46824261c665eef888680626764e3b
Jérémie Dumas 6 жил өмнө
parent
commit
630c469760

+ 1 - 1
include/igl/point_simplex_squared_distance.cpp

@@ -117,7 +117,7 @@ IGL_INLINE void igl::point_simplex_squared_distance(
   assert((Derivedb::RowsAtCompileTime == 1 || Derivedb::ColsAtCompileTime == 1) && "bary must be Eigen Vector or Eigen RowVector");
   assert((Derivedb::RowsAtCompileTime == 1 || Derivedb::ColsAtCompileTime == 1) && "bary must be Eigen Vector or Eigen RowVector");
   assert(
   assert(
     ((Derivedb::RowsAtCompileTime == -1 || Derivedb::ColsAtCompileTime == -1) ||
     ((Derivedb::RowsAtCompileTime == -1 || Derivedb::ColsAtCompileTime == -1) ||
-      (Derivedb::RowsAtCompileTime == Ele.cols() || Derivedb::ColsAtCompileTime == -Ele.cols())
+      (Derivedb::RowsAtCompileTime == Ele.cols() || Derivedb::ColsAtCompileTime == Ele.cols())
     ) && "bary must be Dynamic or size of Ele.cols()");
     ) && "bary must be Dynamic or size of Ele.cols()");
 
 
   BaryPoint tmp_bary;
   BaryPoint tmp_bary;