diff --git a/include/hpp/fcl/shape/geometric_shapes.h b/include/hpp/fcl/shape/geometric_shapes.h index 54ff58be9c1bfd1c672783472574681c2608f2af..cd1197fda8cee2c1c893fcf90156ce8c4341e8b2 100644 --- a/include/hpp/fcl/shape/geometric_shapes.h +++ b/include/hpp/fcl/shape/geometric_shapes.h @@ -681,7 +681,11 @@ class HPP_FCL_DLLAPI ConvexBase : public ShapeBase { protected: /// @brief Construct an uninitialized convex object /// Initialization is done with ConvexBase::initialize. - ConvexBase() : ShapeBase(), num_points(0) {} + ConvexBase() + : ShapeBase(), + num_points(0), + num_normals_and_offsets(0), + center(Vec3f::Zero()) {} /// @brief Initialize the points of the convex shape /// This also initializes the ConvexBase::center.