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

Center at zero point, axis aligned box. More...

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

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

List of all members.

Public Member Functions

 Box (FCL_REAL x, FCL_REAL y, FCL_REAL z)
 Box (const Vec3f &side_)
 Box ()
void computeLocalAABB ()
 Compute AABB.
NODE_TYPE getNodeType () const
 Get node type: a box.
FCL_REAL computeVolume () const
 compute the volume
Matrix3f computeMomentofInertia () const
 compute the inertia matrix, related to the origin

Public Attributes

Vec3f side
 box side length

Detailed Description

Center at zero point, axis aligned box.


Constructor & Destructor Documentation

fcl::Box::Box ( FCL_REAL  x,
FCL_REAL  y,
FCL_REAL  z 
) [inline]
fcl::Box::Box ( const Vec3f side_) [inline]
fcl::Box::Box ( ) [inline]

Member Function Documentation

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

Compute AABB.

Implements fcl::CollisionGeometry.

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

compute the inertia matrix, related to the origin

Reimplemented from fcl::CollisionGeometry.

References computeVolume(), and side.

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

compute the volume

Reimplemented from fcl::CollisionGeometry.

References side.

Referenced by computeMomentofInertia().

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

Get node type: a box.

Reimplemented from fcl::CollisionGeometry.

References fcl::GEOM_BOX.


Member Data Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines