33#ifndef DART_DYNAMICS_SOFTMESHSHAPE_HPP_
34#define DART_DYNAMICS_SOFTMESHSHAPE_HPP_
36#include <assimp/scene.h>
59 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:61
void _buildMesh()
Build mesh using SoftBodyNode data.
Definition SoftMeshShape.cpp:105
void updateVolume() const override
Updates volume.
Definition SoftMeshShape.cpp:99
void updateBoundingBox() const override
Updates bounding box.
Definition SoftMeshShape.cpp:92
const SoftBodyNode * getSoftBodyNode() const
Get the SoftBodyNode that is associated with this SoftMeshShape.
Definition SoftMeshShape.cpp:78
SoftBodyNode * mSoftBodyNode
Definition SoftMeshShape.hpp:88
std::unique_ptr< aiMesh > mAssimpMesh
Definition SoftMeshShape.hpp:91
static const std::string & getStaticType()
Returns shape type for this class.
Definition SoftMeshShape.cpp:67
Eigen::Matrix3d computeInertia(double mass) const override
Computes the inertia.
Definition SoftMeshShape.cpp:83
virtual ~SoftMeshShape()
Destructor.
Definition SoftMeshShape.cpp:55
const aiMesh * getAssimpMesh() const
Definition SoftMeshShape.cpp:73
void update()
Update positions of the vertices using the parent soft body node.
Definition SoftMeshShape.cpp:143
Definition BulletCollisionDetector.cpp:63