Commit fea6c2e7 authored by Lucile Remigy's avatar Lucile Remigy
Browse files

Half length for capsule, cone, cylinder

parent 03f773bd
...@@ -149,10 +149,10 @@ class Capsule : public ShapeBase ...@@ -149,10 +149,10 @@ class Capsule : public ShapeBase
public: public:
Capsule(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_) 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 /// @brief Radius of capsule
FCL_REAL radius; FCL_REAL radius;
...@@ -194,10 +194,10 @@ class Cone : public ShapeBase ...@@ -194,10 +194,10 @@ class Cone : public ShapeBase
public: public:
Cone(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_) 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 /// @brief Radius of the cone
FCL_REAL radius; FCL_REAL radius;
...@@ -241,9 +241,9 @@ class Cylinder : public ShapeBase ...@@ -241,9 +241,9 @@ class Cylinder : public ShapeBase
public: public:
Cylinder(FCL_REAL radius_, FCL_REAL lz_) : ShapeBase(), radius(radius_), lz(lz_) 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 /// @brief Radius of the cylinder
FCL_REAL radius; FCL_REAL radius;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment