Browse Source

fix assertion bug

Alec Jacobson 2 years ago
parent
commit
2f4bc9b4dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/copyleft/cgal/trim_with_solid.cpp

+ 1 - 1
include/igl/copyleft/cgal/trim_with_solid.cpp

@@ -267,7 +267,7 @@ IGL_INLINE void igl::copyleft::cgal::trim_with_solid(
           }
           }
 
 
           // Don't do this until the very end:
           // Don't do this until the very end:
-          assert(I.size() == Vr.rows());
+          assert(I.size() == V.rows());
           // Merge coinciding vertices into non-manifold vertices.
           // Merge coinciding vertices into non-manifold vertices.
           std::for_each(F.data(),F.data()+F.size(),[&I](typename DerivedF::Scalar & a){a=I[a];});
           std::for_each(F.data(),F.data()+F.size(),[&I](typename DerivedF::Scalar & a){a=I[a];});
         }
         }