SOFA API  99934cbc
Open source framework for multi-physics simuation
sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out > Class Template Reference

#include <BarycentricMapperTetrahedronSetTopology.h>

Class allowing barycentric mapping computation on a TetrahedronSetTopology. More...

Inheritance diagram for sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >:

Detailed Description

template<class In, class Out>
class sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >

Class allowing barycentric mapping computation on a TetrahedronSetTopology.

Protected Attributes

topology::TetrahedronSetTopologyContainerm_fromContainer {nullptr}
 
topology::TetrahedronSetGeometryAlgorithms< In > * m_fromGeomAlgo {nullptr}
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperTetrahedronSetTopology, In, Out), SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Tetrahedron))
 
index_type addPointInTetra (const index_type index, const SReal *baryCoords) override
 

Protected Member Functions

 BarycentricMapperTetrahedronSetTopology (topology::TetrahedronSetTopologyContainer *fromTopology, topology::PointSetTopologyContainer *toTopology)
 
 ~BarycentricMapperTetrahedronSetTopology () override
 
virtual helper::vector< TetrahedrongetElements () override
 
virtual helper::vector< SReal > getBaryCoef (const Real *f) override
 
helper::vector< SReal > getBaryCoef (const Real fx, const Real fy, const Real fz)
 
void computeBase (Mat3x3d &base, const typename In::VecCoord &in, const Tetrahedron &element) override
 
void computeCenter (Vector3 &center, const typename In::VecCoord &in, const Tetrahedron &element) override
 
void computeDistance (double &d, const Vector3 &v) override
 
void addPointInElement (const index_type elementIndex, const SReal *baryCoords) override
 
void processTopologicalChanges (const typename Out::VecCoord &out, const typename In::VecCoord &in, core::topology::Topology *t)
 
void processAddPoint (const sofa::defaulttype::Vec3d &pos, const typename In::VecCoord &in, MappingData &vectorData)
 

Attribute details

template<class In, class Out>
topology::TetrahedronSetTopologyContainer* sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::m_fromContainer {nullptr}
protected
template<class In, class Out>
topology::TetrahedronSetGeometryAlgorithms<In>* sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::m_fromGeomAlgo {nullptr}
protected

Constructor details

Function details

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::addPointInElement ( const index_type  elementIndex,
const SReal *  baryCoords 
)
overrideprotected
template<class In , class Out >
BarycentricMapperTetrahedronSetTopology< In, Out >::index_type sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::addPointInTetra ( const index_type  index,
const SReal *  baryCoords 
)
override
template<class In, class Out >
void sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::computeBase ( Mat3x3d base,
const typename In::VecCoord &  in,
const Tetrahedron element 
)
overrideprotected
template<class In, class Out >
void sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::computeCenter ( Vector3 &  center,
const typename In::VecCoord &  in,
const Tetrahedron element 
)
overrideprotected
template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::computeDistance ( double d,
const Vector3 &  v 
)
overrideprotected
template<class In , class Out >
helper::vector< SReal > sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::getBaryCoef ( const Real f)
overrideprotectedvirtual
template<class In , class Out >
helper::vector< SReal > sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::getBaryCoef ( const Real  fx,
const Real  fy,
const Real  fz 
)
protected
template<class In , class Out >
helper::vector< Tetrahedron > sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::getElements ( )
overrideprotectedvirtual
template<class In, class Out >
void sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::processAddPoint ( const sofa::defaulttype::Vec3d &  pos,
const typename In::VecCoord &  in,
MappingData &  vectorData 
)
protected
template<class In, class Out>
void sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::processTopologicalChanges ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in,
core::topology::Topology t 
)
protected
template<class In, class Out>
sofa::component::mapping::BarycentricMapperTetrahedronSetTopology< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperTetrahedronSetTopology< In, Out >, In, Out ,
SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Tetrahedron  
)