瀏覽代碼

Removed minus from assertion

Former-commit-id: 9c23ff20f8128eb33be99182a31ba956feb95d05
vskhitkov 6 年之前
父節點
當前提交
537c389b74
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;