Center at zero point, axis aligned box. More...
#include <hpp/fcl/shape/geometric_shapes.h>
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 |
Center at zero point, axis aligned box.
fcl::Box::Box | ( | const Vec3f & | side_ | ) | [inline] |
fcl::Box::Box | ( | ) | [inline] |
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] |
box side length
Referenced by computeMomentofInertia(), computeVolume(), and fcl::generateBVHModel().