Przeglądaj źródła

Removed minus from assertion

Former-commit-id: 9c23ff20f8128eb33be99182a31ba956feb95d05
vskhitkov 6 lat temu
rodzic
commit
537c389b74
1 zmienionych plików z 1 dodań i 1 usunięć
  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) && "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;