void applyNextPose()
This method updates the position of the mesh after computation.
Definition: CGELMesh.cpp:186
std::list< cGELSkeletonLink * > m_links
List of links connecting the different nodes.
Definition: CGELMesh.h:134
void computeNextPose(double iTimeInterval)
This method updates the simulation over a time interval.
Definition: CGELMesh.cpp:158
std::list< cGELSkeletonNode * > m_nodes
List of nodes composing the skeleton.
Definition: CGELMesh.h:131
std::vector< cGELVertex > m_gelVertices
List of deformable vertices.
Definition: CGELMesh.h:140
virtual void render(chai3d::cRenderOptions &a_options)
This method renders the deformable mesh graphically.
Definition: CGELMesh.cpp:216
Implementation of an elastic link that connects two skeleton nodes together.
Implementation on a linear spring.
std::list< cGELLinearSpring * > m_linearSprings
List of linear springs connecting vertices together.
Definition: CGELMesh.h:137
bool m_useSkeletonModel
If true then use skeleton model.
Definition: CGELMesh.h:149
void clearForces()
This method sets all computed forces to zero.
Definition: CGELMesh.cpp:70
This class inherits from class cMesh and integrate a skeleton model for modelling deformations of the...
Definition: CGELMesh.h:75
bool m_useMassParticleModel
If true then use vertex mass particle model.
Definition: CGELMesh.h:152
Implementation of a vertex for deformable objects.
void updateVertexPosition()
This method updates the position of all vertices connected to the skeleton.
Definition: CGELMesh.cpp:410
bool m_showMassParticleModel
If true then display mass particle model.
Definition: CGELMesh.h:146
void clearExternalForces()
This method sets all external forces to zero.
Definition: CGELMesh.cpp:98
void buildVertices()
This method builds all dynamic vertices that describe the deformable mesh.
Definition: CGELMesh.cpp:272
virtual ~cGELMesh()
Destructor of cGELMesh.
Definition: CGELMesh.h:87
void connectVerticesToSkeleton(bool a_connectToNodesOnly)
This method connects each dynamic vertex to the skeleton.
Definition: CGELMesh.cpp:318
bool m_showSkeletonModel
If true then display skeleton.
Definition: CGELMesh.h:143
void computeForces()
This method computes all internal forces.
Definition: CGELMesh.cpp:127
cGELMesh()
Constructor of cGELMesh.
Definition: CGELMesh.h:84
Implementation of a skeleton mass node.