33 #ifndef DART_DYNAMICS_CONESHAPE_HPP_
34 #define DART_DYNAMICS_CONESHAPE_HPP_
53 const std::string&
getType()
const override;
82 double radius,
double height,
double mass);
ConeShape represents a three-dimensional geometric shape that tapers smoothly from a flat circular ba...
Definition: ConeShape.hpp:44
double mHeight
Height of the cylindrical part.
Definition: ConeShape.hpp:99
const std::string & getType() const override
Returns a string representing the shape type.
Definition: ConeShape.cpp:54
static const std::string & getStaticType()
Get shape type string for this shape.
Definition: ConeShape.cpp:60
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:107
void updateBoundingBox() const override
Updates bounding box.
Definition: ConeShape.cpp:122
ConeShape(double radius, double height)
Constructor.
Definition: ConeShape.cpp:44
void setHeight(double height)
Set the lateral height of the cone.
Definition: ConeShape.cpp:90
void setRadius(double radius)
Set the radius of the circular base.
Definition: ConeShape.cpp:73
double mRadius
Radius of the circular base.
Definition: ConeShape.hpp:96
void updateVolume() const override
Updates volume.
Definition: ConeShape.cpp:133
double getRadius() const
Get the radius of the circular base.
Definition: ConeShape.cpp:67
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: ConeShape.cpp:101
double getHeight() const
Get the lateral height of the cone.
Definition: ConeShape.cpp:84
Definition: BulletCollisionDetector.cpp:63