Browse Source

Explicitly zero-fill incidence vector.

Chris Johnson 6 years ago
parent
commit
a6e97d4df6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/copyleft/cgal/wire_mesh.cpp

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

@@ -64,7 +64,7 @@ IGL_INLINE void igl::copyleft::cgal::wire_mesh(
   };
 
   // Count each vertex's indicident edges.
-  std::vector<int> nedges(WV.rows());
+  std::vector<int> nedges(WV.rows(), 0);
   for(int e = 0;e<WE.rows();e++)
   {
     ++nedges[WE(e, 0)];