Explorar o código

fix buggy assert

Alec Jacobson %!s(int64=6) %!d(string=hai) anos
pai
achega
bd3a7c6b9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();