Skip to content
Snippets Groups Projects
Commit 13e462b1 authored by Lucile Remigy's avatar Lucile Remigy
Browse files

half length

parent 2d4578cd
No related branches found
No related tags found
No related merge requests found
...@@ -149,6 +149,8 @@ class Capsule : public ShapeBase ...@@ -149,6 +149,8 @@ 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){} // Capsule::Capsule() : HalfLength(lz/2), lz(0){}
...@@ -194,6 +196,8 @@ class Cone : public ShapeBase ...@@ -194,6 +196,8 @@ 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){} //Cone::Cone() : HalfLength(lz/2), lz(0){}
...@@ -241,6 +245,8 @@ class Cylinder : public ShapeBase ...@@ -241,6 +245,8 @@ 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){} // Cylinder::Cylinder() : HalfLength(lz/2), lz(0){}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment