diff --git a/include/hpp/fcl/BVH/BVH_model.h b/include/hpp/fcl/BVH/BVH_model.h index 761c6789ee8ecc96c6fac0bcd276d5e324a2e547..4897da57115a87ea84169757dcb5cfcca6100dc9 100644 --- a/include/hpp/fcl/BVH/BVH_model.h +++ b/include/hpp/fcl/BVH/BVH_model.h @@ -195,7 +195,7 @@ public: Vec3f computeCOM() const { FCL_REAL vol = 0; - Vec3f com; + Vec3f com(0,0,0); for(int i = 0; i < num_tris; ++i) { const Triangle& tri = tri_indices[i];