mesh_simplify_uninitialized_var.patch 532 B

12345678910111213
  1. diff -r e82d852e4fb0 include/carve/mesh_simplify.hpp
  2. --- a/include/carve/mesh_simplify.hpp Wed Jan 15 13:16:14 2014 +1100
  3. +++ b/include/carve/mesh_simplify.hpp Wed Jun 11 13:13:09 2014 +0600
  4. @@ -1414,7 +1414,7 @@
  5. size_t removeLowVolumeManifolds(meshset_t *meshset, double min_abs_volume) {
  6. - size_t n_removed;
  7. + size_t n_removed = 0;
  8. for (size_t i = 0; i < meshset->meshes.size(); ++i) {
  9. if (fabs(meshset->meshes[i]->volume()) < min_abs_volume) {
  10. delete meshset->meshes[i];