Explorar o código

Merge pull request #885 from vskhitkov/fix_point_simplex_squared_distance

Removed minus from assertion

Former-commit-id: 42d676812c46824261c665eef888680626764e3b
Jérémie Dumas %!s(int64=6) %!d(string=hai) anos
pai
achega
630c469760
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/igl/point_simplex_squared_distance.cpp

+ 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) ||
-      (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()");
 
   BaryPoint tmp_bary;