From 13e462b1187ec3670a351e779ef1b94826383ddd Mon Sep 17 00:00:00 2001 From: Lucile Remigy <lucile.remigy@epitech.eu> Date: Thu, 3 Oct 2019 15:20:15 +0200 Subject: [PATCH] half length --- include/hpp/fcl/shape/geometric_shapes.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/hpp/fcl/shape/geometric_shapes.h b/include/hpp/fcl/shape/geometric_shapes.h index fa0f2e4a..2aa5b444 100644 --- a/include/hpp/fcl/shape/geometric_shapes.h +++ b/include/hpp/fcl/shape/geometric_shapes.h @@ -149,6 +149,8 @@ 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){} @@ -194,6 +196,8 @@ 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){} @@ -241,6 +245,8 @@ 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){} -- GitLab