#include <QuadBendingSprings.h>


Public Types | |
| typedef DataTypes::Real | Real |
| typedef DataTypes::VecCoord | VecCoord |
Public Member Functions | |
| QuadBendingSprings () | |
| ~QuadBendingSprings () | |
| virtual void | init () |
| Searches triangle topology and creates the bending springs. | |
| virtual void | draw () |
| Render internal data of this object, for debugging purposes. | |
Protected Types | |
| typedef std::pair< unsigned, unsigned > | IndexPair |
Protected Member Functions | |
| void | addSpring (unsigned, unsigned, std::set< IndexPair > &) |
| void | registerEdge (IndexPair, IndexPair, std::map< IndexPair, IndexPair > &, std::set< IndexPair > &) |
Protected Attributes | |
| component::MechanicalObject < DataTypes > * | dof |
The springs connect the vertices not belonging to the common edge. It compresses when the surface bends along the common edge.
Definition at line 47 of file QuadBendingSprings.h.
typedef std::pair<unsigned,unsigned> sofa::component::forcefield::QuadBendingSprings< DataTypes >::IndexPair [protected] |
Definition at line 65 of file QuadBendingSprings.h.
| typedef DataTypes::Real sofa::component::forcefield::QuadBendingSprings< DataTypes >::Real |
Reimplemented from sofa::component::forcefield::StiffSpringForceField< DataTypes >.
Definition at line 50 of file QuadBendingSprings.h.
| typedef DataTypes::VecCoord sofa::component::forcefield::QuadBendingSprings< DataTypes >::VecCoord |
Reimplemented from sofa::component::forcefield::StiffSpringForceField< DataTypes >.
Definition at line 51 of file QuadBendingSprings.h.
| sofa::component::forcefield::QuadBendingSprings< DataTypes >::QuadBendingSprings | ( | ) | [inline] |
Definition at line 44 of file QuadBendingSprings.inl.
| sofa::component::forcefield::QuadBendingSprings< DataTypes >::~QuadBendingSprings | ( | ) | [inline] |
Definition at line 51 of file QuadBendingSprings.inl.
| void sofa::component::forcefield::QuadBendingSprings< DataTypes >::addSpring | ( | unsigned | a, | |
| unsigned | b, | |||
| std::set< IndexPair > & | springSet | |||
| ) | [inline, protected] |
Definition at line 55 of file QuadBendingSprings.inl.
References sofa::component::forcefield::QuadBendingSprings< DataTypes >::dof, sofa::component::forcefield::SpringForceField< DataTypes >::kd, sofa::component::forcefield::SpringForceField< DataTypes >::ks, and norm().
Referenced by sofa::component::forcefield::QuadBendingSprings< DataTypes >::registerEdge().
| virtual void sofa::component::forcefield::QuadBendingSprings< DataTypes >::draw | ( | ) | [inline, virtual] |
Render internal data of this object, for debugging purposes.
Reimplemented from sofa::component::forcefield::SpringForceField< DataTypes >.
Definition at line 60 of file QuadBendingSprings.h.
| void sofa::component::forcefield::QuadBendingSprings< DataTypes >::init | ( | void | ) | [inline, virtual] |
Searches triangle topology and creates the bending springs.
Reimplemented from sofa::component::forcefield::StiffSpringForceField< DataTypes >.
Definition at line 89 of file QuadBendingSprings.inl.
References sofa::component::forcefield::QuadBendingSprings< DataTypes >::dof, sofa::core::objectmodel::BaseObject::getContext(), sofa::core::objectmodel::BaseContext::getMechanicalState(), sofa::core::objectmodel::BaseContext::getMeshTopology(), sofa::core::componentmodel::topology::BaseMeshTopology::getQuads(), and sofa::component::forcefield::QuadBendingSprings< DataTypes >::registerEdge().
| void sofa::component::forcefield::QuadBendingSprings< DataTypes >::registerEdge | ( | IndexPair | ab, | |
| IndexPair | cd, | |||
| std::map< IndexPair, IndexPair > & | edgeMap, | |||
| std::set< IndexPair > & | springSet | |||
| ) | [inline, protected] |
Definition at line 69 of file QuadBendingSprings.inl.
References sofa::component::forcefield::QuadBendingSprings< DataTypes >::addSpring().
Referenced by sofa::component::forcefield::QuadBendingSprings< DataTypes >::init().
component::MechanicalObject<DataTypes>* sofa::component::forcefield::QuadBendingSprings< DataTypes >::dof [protected] |
Definition at line 68 of file QuadBendingSprings.h.
Referenced by sofa::component::forcefield::QuadBendingSprings< DataTypes >::addSpring(), and sofa::component::forcefield::QuadBendingSprings< DataTypes >::init().
1.5.7.1