소스 검색

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;
   const int m = l.rows();
-  assert(l.cols() == 4 && "Only triangles accepted");
+  assert(l.cols() == 3 && "Only triangles accepted");
   //Compute squared Edge lengths 
   Matrix<typename DerivedC::Scalar,Dynamic,3> l2;
   l2 = l.array().square();