浏览代码

fix buggy assert

Alec Jacobson 6 年之前
父节点
当前提交
bd3a7c6b9c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/cotmatrix_entries.cpp

+ 1 - 1
include/igl/cotmatrix_entries.cpp

@@ -106,7 +106,7 @@ IGL_INLINE void igl::cotmatrix_entries(
 {
 {
   using namespace Eigen;
   using namespace Eigen;
   const int m = l.rows();
   const int m = l.rows();
-  assert(l.cols() == 4 && "Only triangles accepted");
+  assert(l.cols() == 3 && "Only triangles accepted");
   //Compute squared Edge lengths 
   //Compute squared Edge lengths 
   Matrix<typename DerivedC::Scalar,Dynamic,3> l2;
   Matrix<typename DerivedC::Scalar,Dynamic,3> l2;
   l2 = l.array().square();
   l2 = l.array().square();