33 #ifndef DART_DYNAMICS_CONESHAPE_HPP_ 34 #define DART_DYNAMICS_CONESHAPE_HPP_ 36 #include "dart/dynamics/Shape.hpp" 52 const std::string&
getType()
const override;
81 double radius,
double height,
double mass);
104 #endif // DART_DYNAMICS_CONESHAPE_HPP_ static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: ConeShape.cpp:99
void setRadius(double radius)
Set the radius of the circular base.
Definition: ConeShape.cpp:71
void updateBoundingBox() const override
Updates bounding box.
Definition: ConeShape.cpp:120
double getRadius() const
Get the radius of the circular base.
Definition: ConeShape.cpp:65
ConeShape represents a three-dimensional geometric shape that tapers smoothly from a flat circular ba...
Definition: ConeShape.hpp:43
static Eigen::Matrix3d computeInertia(double radius, double height, double mass)
Compute moments of inertia of a cone at the center of geometric center (half of the z-axis segment be...
Definition: ConeShape.cpp:105
Definition: Aspect.cpp:40
static const std::string & getStaticType()
Get shape type string for this shape.
Definition: ConeShape.cpp:58
const std::string & getType() const override
Returns a string representing the shape type.
Definition: ConeShape.cpp:52
double getHeight() const
Get the lateral height of the cone.
Definition: ConeShape.cpp:82
void updateVolume() const override
Updates volume.
Definition: ConeShape.cpp:131
void setHeight(double height)
Set the lateral height of the cone.
Definition: ConeShape.cpp:88
ConeShape(double radius, double height)
Constructor.
Definition: ConeShape.cpp:44