33 #ifndef DART_DYNAMICS_PYRAMIDSHAPE_HPP_
34 #define DART_DYNAMICS_PYRAMIDSHAPE_HPP_
59 PyramidShape(
double baseWidth,
double baseDepth,
double height);
62 const std::string&
getType()
const override;
93 double baseWidth,
double baseDepth,
double height);
PyramidShape represents a polyhedron formed by connecting a rectangular base and a point (apex) where...
Definition: PyramidShape.hpp:50
double getHeight() const
Returns the perpendicular height from the base to the apex.
Definition: PyramidShape.cpp:104
double mHeight
Perpendicular height from the base to the apex.
Definition: PyramidShape.hpp:113
void setBaseDepth(double depth)
Sets the longitudinal length (algon Y-axis) of the base.
Definition: PyramidShape.cpp:93
double mBaseDepth
Longitudinal length (algon Y-axis) of the base.
Definition: PyramidShape.hpp:110
PyramidShape(double baseWidth, double baseDepth, double height)
Constructor.
Definition: PyramidShape.cpp:45
static double computeVolume(double baseWidth, double baseDepth, double height)
Computes the volume given properties.
Definition: PyramidShape.cpp:121
void updateBoundingBox() const override
Updates bounding box.
Definition: PyramidShape.cpp:128
double getBaseWidth() const
Returns the lateral length (algon X-axis) of the base.
Definition: PyramidShape.cpp:70
void setBaseWidth(double width)
Sets the lateral length (algon X-axis) of the base.
Definition: PyramidShape.cpp:76
const std::string & getType() const override
Returns a string representing the shape type.
Definition: PyramidShape.cpp:57
void setHeight(double height)
Returns the Perpendicular height from the base to the apex.
Definition: PyramidShape.cpp:110
static const std::string & getStaticType()
Returns shape type string for this shape.
Definition: PyramidShape.cpp:63
void updateVolume() const override
Updates volume.
Definition: PyramidShape.cpp:140
Eigen::Matrix3d computeInertia(double mass) const override
Computes the inertia.
Definition: PyramidShape.cpp:147
double getBaseDepth() const
Returns the longitudinal length (algon Y-axis) of the base.
Definition: PyramidShape.cpp:87
double mBaseWidth
Lateral length (algon X-axis) of the base.
Definition: PyramidShape.hpp:107
Definition: BulletCollisionDetector.cpp:65