sofa::component::forcefield::TriangleBendingSprings< DataTypes > Class Template Reference

Bending springs added between vertices of triangles sharing a common edge. More...

#include <TriangleBendingSprings.h>

Inheritance diagram for sofa::component::forcefield::TriangleBendingSprings< DataTypes >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::forcefield::TriangleBendingSprings< DataTypes >:

Collaboration graph
[legend]

Public Types

typedef DataTypes::Real Real
typedef DataTypes::VecCoord VecCoord

Public Member Functions

 TriangleBendingSprings ()
 ~TriangleBendingSprings ()
virtual void init ()
 Searches triangle topology and creates the bending springs.

Protected Types

typedef std::pair< unsigned,
unsigned > 
IndexPair

Protected Member Functions

void addSpring (unsigned, unsigned)
void registerTriangle (unsigned, unsigned, unsigned, std::map< IndexPair, unsigned > &)

Protected Attributes

component::MechanicalObject
< DataTypes > * 
dof

Detailed Description

template<class DataTypes>
class sofa::component::forcefield::TriangleBendingSprings< DataTypes >

Bending springs added between vertices of triangles sharing a common edge.

The springs connect the vertices not belonging to the common edge. It compresses when the surface bends along the common edge.

Author:
The SOFA team </www.sofa-framework.org>

Definition at line 60 of file TriangleBendingSprings.h.


Member Typedef Documentation

template<class DataTypes >
typedef std::pair<unsigned,unsigned> sofa::component::forcefield::TriangleBendingSprings< DataTypes >::IndexPair [protected]

Definition at line 78 of file TriangleBendingSprings.h.

template<class DataTypes >
typedef DataTypes::Real sofa::component::forcefield::TriangleBendingSprings< DataTypes >::Real

template<class DataTypes >
typedef DataTypes::VecCoord sofa::component::forcefield::TriangleBendingSprings< DataTypes >::VecCoord


Constructor & Destructor Documentation

Definition at line 55 of file TriangleBendingSprings.inl.

Definition at line 63 of file TriangleBendingSprings.inl.


Member Function Documentation

template<class DataTypes >
void sofa::component::forcefield::TriangleBendingSprings< DataTypes >::addSpring ( unsigned  a,
unsigned  b 
) [inline, protected]

template<class DataTypes >
void sofa::component::forcefield::TriangleBendingSprings< DataTypes >::init ( void   )  [inline, virtual]

template<class DataTypes >
void sofa::component::forcefield::TriangleBendingSprings< DataTypes >::registerTriangle ( unsigned  a,
unsigned  b,
unsigned  c,
std::map< IndexPair, unsigned > &  edgeMap 
) [inline, protected]


Field Documentation


The documentation for this class was generated from the following files:

Generated on Sun Nov 23 04:20:13 2008 for Sofa by  doxygen 1.5.7.1