33 #ifndef DART_DYNAMICS_BOXSHAPE_HPP_
34 #define DART_DYNAMICS_BOXSHAPE_HPP_
45 explicit BoxShape(
const Eigen::Vector3d& _size);
51 const std::string&
getType()
const override;
57 void setSize(
const Eigen::Vector3d& _size);
60 const Eigen::Vector3d&
getSize()
const;
67 const Eigen::Vector3d& size,
double mass);
Definition: BoxShape.hpp:42
void setSize(const Eigen::Vector3d &_size)
Set size of this box.
Definition: BoxShape.cpp:86
Eigen::Vector3d mSize
Side lengths of the box.
Definition: BoxShape.hpp:81
static const std::string & getStaticType()
Returns shape type for this class.
Definition: BoxShape.cpp:60
static double computeVolume(const Eigen::Vector3d &size)
Compute volume from given properties.
Definition: BoxShape.cpp:67
void updateVolume() const override
Updates volume.
Definition: BoxShape.cpp:119
void updateBoundingBox() const override
Updates bounding box.
Definition: BoxShape.cpp:111
BoxShape(const Eigen::Vector3d &_size)
Constructor.
Definition: BoxShape.cpp:40
const std::string & getType() const override
Returns a string representing the shape type.
Definition: BoxShape.cpp:54
static Eigen::Matrix3d computeInertia(const Eigen::Vector3d &size, double mass)
Compute moments of inertia of a box.
Definition: BoxShape.cpp:73
const Eigen::Vector3d & getSize() const
Get size of this box.
Definition: BoxShape.cpp:99
virtual ~BoxShape()
Destructor.
Definition: BoxShape.cpp:48
Definition: BulletCollisionDetector.cpp:65