sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes > Class Template Reference

A class that provides geometry information on an TetrahedronSet. More...

#include <TetrahedronSetGeometryAlgorithms.h>

Inheritance diagram for sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >:

Inheritance graph
[legend]
Collaboration diagram for sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >:

Collaboration graph
[legend]

Public Types

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

Public Member Functions

 TetrahedronSetGeometryAlgorithms ()
virtual ~TetrahedronSetGeometryAlgorithms ()
Real computeTetrahedronVolume (const unsigned int i) const
 computes the volume of tetrahedron no i and returns it
void computeTetrahedronVolume (BasicArrayInterface< Real > &ai) const
 computes the tetrahedron volume of all tetrahedra are store in the array interface
Real computeRestTetrahedronVolume (const unsigned int i) const
 computes the tetrahedron volume of tetrahedron no i and returns it
void getTetraInBall (unsigned int ind_ta, unsigned int ind_tb, sofa::helper::vector< unsigned int > &indices)
 finds the indices of all tetrahedra in the ball of center ind_ta and of radius dist(ind_ta, ind_tb)
void writeMSHfile (const char *filename)
 Write the current mesh into a msh file.

Detailed Description

template<class DataTypes>
class sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >

A class that provides geometry information on an TetrahedronSet.

Definition at line 56 of file TetrahedronSetGeometryAlgorithms.h.


Member Typedef Documentation

template<class DataTypes >
typedef DataTypes::Coord sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::Coord

template<class DataTypes >
typedef DataTypes::Real sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::Real

template<class DataTypes >
typedef DataTypes::VecCoord sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::VecCoord


Constructor & Destructor Documentation

template<class DataTypes >
sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::TetrahedronSetGeometryAlgorithms (  )  [inline]

Definition at line 63 of file TetrahedronSetGeometryAlgorithms.h.

template<class DataTypes >
virtual sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::~TetrahedronSetGeometryAlgorithms (  )  [inline, virtual]

Definition at line 67 of file TetrahedronSetGeometryAlgorithms.h.


Member Function Documentation

template<class DataTypes >
DataTypes::Real sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::computeRestTetrahedronVolume ( const unsigned int  i  )  const [inline]

template<class DataTypes >
void sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::computeTetrahedronVolume ( BasicArrayInterface< Real > &  ai  )  const [inline]

computes the tetrahedron volume of all tetrahedra are store in the array interface

computes the edge length of all edges are store in the array interface

Definition at line 60 of file TetrahedronSetGeometryAlgorithms.inl.

References sofa::core::componentmodel::topology::BaseMeshTopology::getTetras(), sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology, and sofa::component::topology::tripleProduct().

template<class DataTypes >
DataTypes::Real sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::computeTetrahedronVolume ( const unsigned int  i  )  const [inline]

template<class DataTypes >
void sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::getTetraInBall ( unsigned int  ind_ta,
unsigned int  ind_tb,
sofa::helper::vector< unsigned int > &  indices 
) [inline]

finds the indices of all tetrahedra in the ball of center ind_ta and of radius dist(ind_ta, ind_tb)

Finds the indices of all tetrahedra in the ball of center ind_ta and of radius dist(ind_ta, ind_tb).

Definition at line 73 of file TetrahedronSetGeometryAlgorithms.inl.

References sofa::core::componentmodel::topology::BaseMeshTopology::getTetra(), sofa::core::componentmodel::topology::BaseMeshTopology::getTetraTriangleShell(), sofa::core::componentmodel::topology::BaseMeshTopology::getTriangleTetraShell(), and sofa::component::topology::PointSetGeometryAlgorithms< DataTypes >::m_topology.

template<typename DataTypes >
void sofa::component::topology::TetrahedronSetGeometryAlgorithms< DataTypes >::writeMSHfile ( const char *  filename  )  [inline]


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

Generated on Sun Nov 23 04:21:37 2008 for Sofa by  doxygen 1.5.7.1