33 #ifndef DART_DYNAMICS_DETAIL_SOFTBODYNODEASPECT_HPP_
34 #define DART_DYNAMICS_DETAIL_SOFTBODYNODEASPECT_HPP_
89 const std::vector<PointMass::Properties>& _points =
90 std::vector<PointMass::Properties>(),
91 const std::vector<Eigen::Vector3i>& _faces =
92 std::vector<Eigen::Vector3i>());
103 void addFace(
const Eigen::Vector3i& _newFace);
#define DART_DEFINE_ALIGNED_SHARED_OBJECT_CREATOR(class_name)
Definition: Memory.hpp:148
This is an alternative to EmbedStateAndProperties which allows your class to also inherit other Compo...
Definition: EmbeddedAspect.hpp:438
Definition: CompositeData.hpp:180
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:78
SoftBodyNode represent a soft body that has one deformable skin.
Definition: SoftBodyNode.hpp:46
Definition: SoftMeshShape.hpp:47
const double DART_DEFAULT_DAMPING_COEFF
Definition: SoftBodyNodeAspect.hpp:45
const double DART_DEFAULT_VERTEX_STIFFNESS
Definition: SoftBodyNodeAspect.hpp:43
const double DART_DEFAULT_EDGE_STIFNESS
Definition: SoftBodyNodeAspect.hpp:44
Definition: BulletCollisionDetector.cpp:63
Properties for each PointMass.
Definition: PointMass.hpp:83
Definition: SoftBodyNodeAspect.hpp:109
SoftBodyNodeProperties(const BodyNode::Properties &_bodyProperties=BodyNode::Properties(), const SoftBodyNodeUniqueProperties &_softProperties=SoftBodyNodeUniqueProperties())
Definition: SoftBodyNode.cpp:110
virtual ~SoftBodyNodeProperties()=default
Definition: SoftBodyNodeAspect.hpp:66
void addFace(const Eigen::Vector3i &_newFace)
Add a face to this Properties struct.
Definition: SoftBodyNode.cpp:98
void addPointMass(const PointMass::Properties &_properties)
Add a PointMass to this Properties struct.
Definition: SoftBodyNode.cpp:68
virtual ~SoftBodyNodeUniqueProperties()=default
double mKe
Spring stiffness for edge deformation restoring spring force of the point masses.
Definition: SoftBodyNodeAspect.hpp:73
SoftBodyNodeUniqueProperties(double _Kv=DART_DEFAULT_VERTEX_STIFFNESS, double _Ke=DART_DEFAULT_EDGE_STIFNESS, double _DampCoeff=DART_DEFAULT_DAMPING_COEFF, const std::vector< PointMass::Properties > &_points=std::vector< PointMass::Properties >(), const std::vector< Eigen::Vector3i > &_faces=std::vector< Eigen::Vector3i >())
Definition: SoftBodyNode.cpp:54
std::vector< PointMass::Properties > mPointProps
Array of Properties for PointMasses.
Definition: SoftBodyNodeAspect.hpp:79
bool connectPointMasses(std::size_t i1, std::size_t i2)
Connect two PointMasses together in this Properties struct.
Definition: SoftBodyNode.cpp:75
double mKv
Spring stiffness for vertex deformation restoring spring force of the point masses.
Definition: SoftBodyNodeAspect.hpp:69
std::vector< Eigen::Vector3i > mFaces
Tri-mesh indexes for rendering.
Definition: SoftBodyNodeAspect.hpp:83
double mDampCoeff
Damping coefficient.
Definition: SoftBodyNodeAspect.hpp:76
Definition: SoftBodyNodeAspect.hpp:57
virtual ~SoftBodyNodeUniqueState()=default
std::vector< PointMass::State > mPointStates
Array of States for PointMasses.
Definition: SoftBodyNodeAspect.hpp:59