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;
Definition: BoxShape.hpp:42
void setSize(const Eigen::Vector3d &_size)
Set size of this box.
Definition: BoxShape.cpp:88
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:62
static double computeVolume(const Eigen::Vector3d &size)
Compute volume from given properties.
Definition: BoxShape.cpp:69
void updateVolume() const override
Updates volume.
Definition: BoxShape.cpp:121
void updateBoundingBox() const override
Updates bounding box.
Definition: BoxShape.cpp:113
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:56
static Eigen::Matrix3d computeInertia(const Eigen::Vector3d &size, double mass)
Compute moments of inertia of a box.
Definition: BoxShape.cpp:75
const Eigen::Vector3d & getSize() const
Get size of this box.
Definition: BoxShape.cpp:101
virtual ~BoxShape()
Destructor.
Definition: BoxShape.cpp:50
Definition: BulletCollisionDetector.cpp:63