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
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;
......
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