#include <EdgeSetGeometryAlgorithms.h>


Public Types | |
| typedef DataTypes::VecCoord | VecCoord |
| typedef DataTypes::Real | Real |
| typedef DataTypes::Coord | Coord |
Public Member Functions | |
| EdgeSetGeometryAlgorithms () | |
| virtual | ~EdgeSetGeometryAlgorithms () |
| virtual Real | computeEdgeLength (const unsigned int i) const |
| computes the length of edge no i and returns it | |
| virtual void | computeEdgeLength (BasicArrayInterface< Real > &ai) const |
| computes the edge length of all edges are store in the array interface | |
| virtual Real | computeRestEdgeLength (const unsigned int i) const |
| computes the initial length of edge no i and returns it | |
| virtual Real | computeRestSquareEdgeLength (const unsigned int i) const |
| computes the initial square length of edge no i and returns it | |
| void | writeMSHfile (const char *filename) |
| Write the current mesh into a msh file. | |
Definition at line 61 of file EdgeSetGeometryAlgorithms.h.
| typedef DataTypes::Coord sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::Coord |
Reimplemented from sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >.
Reimplemented in sofa::component::topology::HexahedronSetGeometryAlgorithms< DataTypes >, sofa::component::topology::ManifoldEdgeSetGeometryAlgorithms< DataTypes >, sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >, sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >, and sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >.
Definition at line 66 of file EdgeSetGeometryAlgorithms.h.
| typedef DataTypes::Real sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::Real |
Reimplemented from sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >.
Reimplemented in sofa::component::topology::HexahedronSetGeometryAlgorithms< DataTypes >, sofa::component::topology::ManifoldEdgeSetGeometryAlgorithms< DataTypes >, sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >, sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >, and sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >.
Definition at line 65 of file EdgeSetGeometryAlgorithms.h.
| typedef DataTypes::VecCoord sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::VecCoord |
Reimplemented from sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >.
Reimplemented in sofa::component::topology::HexahedronSetGeometryAlgorithms< DataTypes >, sofa::component::topology::ManifoldEdgeSetGeometryAlgorithms< DataTypes >, sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >, sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >, and sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >.
Definition at line 64 of file EdgeSetGeometryAlgorithms.h.
| sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::EdgeSetGeometryAlgorithms | ( | ) | [inline] |
Definition at line 69 of file EdgeSetGeometryAlgorithms.h.
| virtual sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::~EdgeSetGeometryAlgorithms | ( | ) | [inline, virtual] |
Definition at line 73 of file EdgeSetGeometryAlgorithms.h.
| void sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeEdgeLength | ( | BasicArrayInterface< Real > & | ai | ) | const [inline, virtual] |
computes the edge length of all edges are store in the array interface
Definition at line 71 of file EdgeSetGeometryAlgorithms.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getEdges(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology, and norm().
| DataTypes::Real sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeEdgeLength | ( | const unsigned int | i | ) | const [inline, virtual] |
computes the length of edge no i and returns it
Definition at line 43 of file EdgeSetGeometryAlgorithms.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getEdge(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology, and norm().
Referenced by sofa::component::forcefield::SpringEdgeDataForceField< DataTypes >::createDefaultSprings().
| DataTypes::Real sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeRestEdgeLength | ( | const unsigned int | i | ) | const [inline, virtual] |
computes the initial length of edge no i and returns it
Definition at line 52 of file EdgeSetGeometryAlgorithms.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getEdge(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology, and norm().
Referenced by sofa::component::forcefield::springCreationFunction(), and sofa::component::forcefield::TriangularQuadraticSpringsForceField< DataTypes >::TRQSEdgeCreationFunction().
| DataTypes::Real sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::computeRestSquareEdgeLength | ( | const unsigned int | i | ) | const [inline, virtual] |
computes the initial square length of edge no i and returns it
Definition at line 61 of file EdgeSetGeometryAlgorithms.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getEdge(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology, and norm2().
Referenced by sofa::component::forcefield::TriangularBiquadraticSpringsForceField< DataTypes >::TRBSEdgeCreationFunction().
| void sofa::component::topology::EdgeSetGeometryAlgorithms< DataTypes >::writeMSHfile | ( | const char * | filename | ) | [inline] |
Write the current mesh into a msh file.
Reimplemented in sofa::component::topology::HexahedronSetGeometryAlgorithms< DataTypes >, sofa::component::topology::QuadSetGeometryAlgorithms< DataTypes >, sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >, and sofa::component::topology::TriangleSetGeometryAlgorithms< DataTypes >.
Definition at line 85 of file EdgeSetGeometryAlgorithms.inl.
References sofa::core::componentmodel::topology::BaseMeshTopology::getEdges(), and sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology.
1.5.7.1