33 #ifndef DART_DYNAMICS_CONESHAPE_HPP_
34 #define DART_DYNAMICS_CONESHAPE_HPP_
52 const std::string&
getType()
const override;
81 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:98
const std::string & getType() const override
Returns a string representing the shape type.
Definition: ConeShape.cpp:52
static const std::string & getStaticType()
Get shape type string for this shape.
Definition: ConeShape.cpp:58
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
void updateBoundingBox() const override
Updates bounding box.
Definition: ConeShape.cpp:120
ConeShape(double radius, double height)
Constructor.
Definition: ConeShape.cpp:44
void setHeight(double height)
Set the lateral height of the cone.
Definition: ConeShape.cpp:88
void setRadius(double radius)
Set the radius of the circular base.
Definition: ConeShape.cpp:71
double mRadius
Radius of the circular base.
Definition: ConeShape.hpp:95
void updateVolume() const override
Updates volume.
Definition: ConeShape.cpp:131
double getRadius() const
Get the radius of the circular base.
Definition: ConeShape.cpp:65
static double computeVolume(double radius, double height)
Compute volume from given properties.
Definition: ConeShape.cpp:99
double getHeight() const
Get the lateral height of the cone.
Definition: ConeShape.cpp:82
Definition: BulletCollisionDetector.cpp:65