All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fcl::Box Class Reference

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

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

Inheritance diagram for fcl::Box:
Collaboration diagram for fcl::Box:

Public Member Functions

 Box (FCL_REAL x, FCL_REAL y, FCL_REAL z)
 
 Box (const Vec3f &side_)
 
 Box ()
 
void computeLocalAABB ()
 Compute AABB. More...
 
NODE_TYPE getNodeType () const
 Get node type: a box. More...
 
FCL_REAL computeVolume () const
 compute the volume More...
 
Matrix3f computeMomentofInertia () const
 compute the inertia matrix, related to the origin More...
 
- Public Member Functions inherited from fcl::ShapeBase
 ShapeBase ()
 
OBJECT_TYPE getObjectType () const
 Get object type: a geometric shape. More...
 
- Public Member Functions inherited from fcl::CollisionGeometry
 CollisionGeometry ()
 
virtual ~CollisionGeometry ()
 
void * getUserData () const
 get user data in geometry More...
 
void setUserData (void *data)
 set user data in geometry More...
 
bool isOccupied () const
 whether the object is completely occupied More...
 
bool isFree () const
 whether the object is completely free More...
 
bool isUncertain () const
 whether the object has some uncertainty More...
 
virtual Vec3f computeCOM () const
 compute center of mass More...
 
virtual Matrix3f computeMomentofInertiaRelatedToCOM () const
 compute the inertia matrix, related to the com More...
 

Public Attributes

Vec3f side
 box side length More...
 
- Public Attributes inherited from fcl::CollisionGeometry
Vec3f aabb_center
 AABB center in local coordinate. More...
 
FCL_REAL aabb_radius
 AABB radius. More...
 
AABB aabb_local
 AABB in local coordinate, used for tight AABB when only translation transform. More...
 
void * user_data
 pointer to user defined data specific to this object More...
 
FCL_REAL cost_density
 collision cost for unit volume More...
 
FCL_REAL threshold_occupied
 threshold for occupied ( >= is occupied) More...
 
FCL_REAL threshold_free
 threshold for free (<= is free) More...
 

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
inlinevirtual

compute the inertia matrix, related to the origin

Reimplemented from fcl::CollisionGeometry.

References computeVolume().

FCL_REAL fcl::Box::computeVolume ( ) const
inlinevirtual

compute the volume

Reimplemented from fcl::CollisionGeometry.

Referenced by computeMomentofInertia().

NODE_TYPE fcl::Box::getNodeType ( ) const
inlinevirtual

Get node type: a box.

Reimplemented from fcl::CollisionGeometry.

References fcl::GEOM_BOX.

Member Data Documentation

Vec3f fcl::Box::side

box side length

Referenced by fcl::generateBVHModel().