33 #ifndef DART_DYNAMICS_SOFTMESHSHAPE_HPP_
34 #define DART_DYNAMICS_SOFTMESHSHAPE_HPP_
36 #include <Eigen/Dense>
37 #include <assimp/scene.h>
58 const std::string&
getType()
const override;
SoftBodyNode represent a soft body that has one deformable skin.
Definition: SoftBodyNode.hpp:46
Definition: SoftMeshShape.hpp:47
const std::string & getType() const override
Returns a string representing the shape type.
Definition: SoftMeshShape.cpp:59
void _buildMesh()
Build mesh using SoftBodyNode data.
Definition: SoftMeshShape.cpp:103
void updateVolume() const override
Updates volume.
Definition: SoftMeshShape.cpp:97
void updateBoundingBox() const override
Updates bounding box.
Definition: SoftMeshShape.cpp:90
const SoftBodyNode * getSoftBodyNode() const
Get the SoftBodyNode that is associated with this SoftMeshShape.
Definition: SoftMeshShape.cpp:76
SoftBodyNode * mSoftBodyNode
Definition: SoftMeshShape.hpp:87
std::unique_ptr< aiMesh > mAssimpMesh
Definition: SoftMeshShape.hpp:90
SoftMeshShape(SoftBodyNode *_softBodyNode)
Constructor.
Definition: SoftMeshShape.cpp:43
static const std::string & getStaticType()
Returns shape type for this class.
Definition: SoftMeshShape.cpp:65
Eigen::Matrix3d computeInertia(double mass) const override
Computes the inertia.
Definition: SoftMeshShape.cpp:81
virtual ~SoftMeshShape()
Destructor.
Definition: SoftMeshShape.cpp:53
const aiMesh * getAssimpMesh() const
Definition: SoftMeshShape.cpp:71
void update()
Update positions of the vertices using the parent soft body node.
Definition: SoftMeshShape.cpp:141
Definition: BulletCollisionDetector.cpp:65