Class Box

Inheritance Relationships

Base Type

Class Documentation

class Box : public hpp::fcl::ShapeBase

Center at zero point, axis aligned box.

Public Functions

inline Box(FCL_REAL x, FCL_REAL y, FCL_REAL z)
inline Box(const Vec3f &side_)
inline Box(const Box &other)
inline Box &operator=(const Box &other)
inline virtual Box *clone() const

Clone *this into a new Box.

inline Box()

Default constructor.

virtual void computeLocalAABB()

Compute AABB.

inline virtual NODE_TYPE getNodeType() const

Get node type: a box.

inline virtual FCL_REAL computeVolume() const

compute the volume

inline virtual Matrix3f computeMomentofInertia() const

compute the inertia matrix, related to the origin

inline FCL_REAL minInflationValue() const
inline std::pair<Box, Transform3f> inflated(const FCL_REAL value) const

Inflate the box by an amount given by value.

Parameters:

value[in] of the shape inflation.

Returns:

a new inflated box and the related transform to account for the change of shape frame

Public Members

Vec3f halfSide

box side half-length