diff --git a/include/hpp/fcl/shape/geometric_shapes.h b/include/hpp/fcl/shape/geometric_shapes.h index fa0f2e4a9d2b3ef609bf4b36e2885d8d171a10c3..3daee777c800d7a26e4ba5ef4095c16d1f063821 100644 --- a/include/hpp/fcl/shape/geometric_shapes.h +++ b/include/hpp/fcl/shape/geometric_shapes.h @@ -149,10 +149,10 @@ class Capsule : public ShapeBase public: Capsule(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_) { + lz = 0; + HalfLength = lz/2; } - // Capsule::Capsule() : HalfLength(lz/2), lz(0){} - /// @brief Radius of capsule FCL_REAL radius; @@ -194,10 +194,10 @@ class Cone : public ShapeBase public: Cone(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_) { + lz = 0; + HalfLength = lz/2; } - //Cone::Cone() : HalfLength(lz/2), lz(0){} - /// @brief Radius of the cone FCL_REAL radius; @@ -241,9 +241,9 @@ class Cylinder : public ShapeBase public: Cylinder(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_) { + lz = 0; + HalfLength = lz/2; } - - // Cylinder::Cylinder() : HalfLength(lz/2), lz(0){} /// @brief Radius of the cylinder FCL_REAL radius;