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