33#ifndef DART_DYNAMICS_SOFTMESHSHAPE_HPP_
34#define DART_DYNAMICS_SOFTMESHSHAPE_HPP_
37#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:48
const std::string & getType() const override
Returns a string representing the shape type.
Definition SoftMeshShape.cpp:58
void _buildMesh()
Build mesh using SoftBodyNode data.
Definition SoftMeshShape.cpp:112
void updateVolume() const override
Updates volume.
Definition SoftMeshShape.cpp:106
void updateBoundingBox() const override
Updates bounding box.
Definition SoftMeshShape.cpp:99
const SoftBodyNode * getSoftBodyNode() const
Get the SoftBodyNode that is associated with this SoftMeshShape.
Definition SoftMeshShape.cpp:77
SoftBodyNode * mSoftBodyNode
Definition SoftMeshShape.hpp:91
ShapePtr clone() const override
Deep copy shape.
Definition SoftMeshShape.cpp:92
std::unique_ptr< aiMesh > mAssimpMesh
Definition SoftMeshShape.hpp:94
static const std::string & getStaticType()
Returns shape type for this class.
Definition SoftMeshShape.cpp:64
Eigen::Matrix3d computeInertia(double mass) const override
Computes the inertia.
Definition SoftMeshShape.cpp:83
virtual ~SoftMeshShape()
Destructor.
Definition SoftMeshShape.cpp:52
const aiMesh * getAssimpMesh() const
Definition SoftMeshShape.cpp:71
void update()
Update positions of the vertices using the parent soft body node.
Definition SoftMeshShape.cpp:150
std::shared_ptr< Shape > ShapePtr
Definition SmartPointer.hpp:81
Definition BulletCollisionDetector.cpp:60