Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
fea6c2e7
Commit
fea6c2e7
authored
Oct 01, 2019
by
Lucile Remigy
Browse files
Half length for capsule, cone, cylinder
parent
03f773bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/fcl/shape/geometric_shapes.h
View file @
fea6c2e7
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment