Fix a warning in carve by initializing var
authorJens Verwiebe <info@jensverwiebe.de>
Tue, 10 Jun 2014 18:15:50 +0000 (20:15 +0200)
committerJens Verwiebe <info@jensverwiebe.de>
Tue, 10 Jun 2014 18:15:50 +0000 (20:15 +0200)
extern/carve/include/carve/mesh_simplify.hpp

index f0a0a965707af72748fc0c6a74306a3ebb7d7ba9..f9544a4e969491d1289cb3bd46ed4ac921e0b61d 100644 (file)
@@ -1439,7 +1439,7 @@ namespace carve {
 
 
       size_t removeLowVolumeManifolds(meshset_t *meshset, double min_abs_volume) {
-        size_t n_removed;
+        size_t n_removed = 0;
         for (size_t i = 0; i < meshset->meshes.size(); ++i) {
           if (fabs(meshset->meshes[i]->volume()) < min_abs_volume) {
             delete meshset->meshes[i];