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

#include <BarycentricMapperTetrahedronSetTopology.h>

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

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

Detailed Description

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

Class allowing barycentric mapping computation on a TetrahedronSetTopology.

Public Member Functions

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

Protected Member Functions

 BarycentricMapperTetrahedronSetTopology (sofa::core::topology::TopologyContainer *fromTopology, core::topology::BaseMeshTopology *toTopology)
 
 ~BarycentricMapperTetrahedronSetTopology () override=default
 
virtual type::vector< TetrahedrongetElements () override
 
virtual type::vector< SReal > getBaryCoef (const Real *f) override
 
type::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 (Vec3 &center, const typename In::VecCoord &in, const Tetrahedron &element) override
 
void computeDistance (SReal &d, const Vec3 &v) override
 
void addPointInElement (const Index 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::type::Vec3d &pos, const typename In::VecCoord &in, MappingData &vectorData)
 

Constructor details

◆ BarycentricMapperTetrahedronSetTopology()

◆ ~BarycentricMapperTetrahedronSetTopology()

template<class In , class Out >
sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::~BarycentricMapperTetrahedronSetTopology ( )
overrideprotecteddefault

Function details

◆ addPointInElement()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::addPointInElement ( const Index  elementIndex,
const SReal *  baryCoords 
)
overrideprotected

◆ addPointInTetra()

template<class In , class Out >
BarycentricMapperTetrahedronSetTopology< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::addPointInTetra ( const Index  index,
const SReal *  baryCoords 
)
override

◆ computeBase()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::computeBase ( Mat3x3d base,
const typename In::VecCoord &  in,
const Tetrahedron element 
)
overrideprotected

◆ computeCenter()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::computeCenter ( Vec3 center,
const typename In::VecCoord &  in,
const Tetrahedron element 
)
overrideprotected

◆ computeDistance()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::computeDistance ( SReal &  d,
const Vec3 v 
)
overrideprotected

◆ getBaryCoef() [1/2]

template<class In , class Out >
type::vector< SReal > sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::getBaryCoef ( const Real f)
overrideprotectedvirtual

◆ getBaryCoef() [2/2]

template<class In , class Out >
type::vector< SReal > sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::getBaryCoef ( const Real  fx,
const Real  fy,
const Real  fz 
)
protected

◆ getElements()

template<class In , class Out >
type::vector< Tetrahedron > sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::getElements
overrideprotectedvirtual

◆ processAddPoint()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::processAddPoint ( const sofa::type::Vec3d pos,
const typename In::VecCoord &  in,
MappingData &  vectorData 
)
protected

◆ processTopologicalChanges()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::processTopologicalChanges ( const typename Out::VecCoord &  out,
const typename In::VecCoord &  in,
core::topology::Topology t 
)
protected

◆ SOFA_CLASS()

template<class In , class Out >
sofa::component::mapping::linear::BarycentricMapperTetrahedronSetTopology< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperTetrahedronSetTopology< In, Out >, In, Out)  ,
SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Tetrahedron  
)