Public Member Functions | Public Attributes
fcl::Cylinder Class Reference

Center at zero cylinder. More...

#include <hpp/fcl/shape/geometric_shapes.h>

Inheritance diagram for fcl::Cylinder:
[legend]
Collaboration diagram for fcl::Cylinder:
[legend]

List of all members.

Public Member Functions

 Cylinder (FCL_REAL radius_, FCL_REAL lz_)
void computeLocalAABB ()
 Compute AABB.
NODE_TYPE getNodeType () const
 Get node type: a cylinder.
FCL_REAL computeVolume () const
 compute the volume
Matrix3f computeMomentofInertia () const
 compute the inertia matrix, related to the origin

Public Attributes

FCL_REAL radius
 Radius of the cylinder.
FCL_REAL lz
 Length along z axis.

Detailed Description

Center at zero cylinder.


Constructor & Destructor Documentation

fcl::Cylinder::Cylinder ( FCL_REAL  radius_,
FCL_REAL  lz_ 
) [inline]

Member Function Documentation

void fcl::Cylinder::computeLocalAABB ( ) [virtual]

Compute AABB.

Implements fcl::CollisionGeometry.

Matrix3f fcl::Cylinder::computeMomentofInertia ( ) const [inline, virtual]

compute the inertia matrix, related to the origin

Reimplemented from fcl::CollisionGeometry.

References computeVolume(), lz, and radius.

FCL_REAL fcl::Cylinder::computeVolume ( ) const [inline, virtual]

compute the volume

Reimplemented from fcl::CollisionGeometry.

References lz, and radius.

Referenced by computeMomentofInertia().

NODE_TYPE fcl::Cylinder::getNodeType ( ) const [inline, virtual]

Get node type: a cylinder.

Reimplemented from fcl::CollisionGeometry.

References fcl::GEOM_CYLINDER.


Member Data Documentation

Length along z axis.

Referenced by computeMomentofInertia(), computeVolume(), and fcl::generateBVHModel().

Radius of the cylinder.

Referenced by computeMomentofInertia(), computeVolume(), and fcl::generateBVHModel().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines