SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out > Class Template Reference

#include <BarycentricMapperTriangleSetTopology.h>

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

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

Detailed Description

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

Class allowing barycentric mapping computation on a TriangleSetTopology.

Protected Attributes

topology::TriangleSetTopologyContainerm_fromContainer
 
topology::TriangleSetGeometryAlgorithms< In > * m_fromGeomAlgo
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperTriangleSetTopology, In, Out), SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Triangle))
 
 ~BarycentricMapperTriangleSetTopology () override
 
int addPointInTriangle (const int triangleIndex, const SReal *baryCoords) override
 
int createPointInTriangle (const typename Out::Coord &p, int triangleIndex, const typename In::VecCoord *points) override
 

Protected Member Functions

 BarycentricMapperTriangleSetTopology ()
 
 BarycentricMapperTriangleSetTopology (topology::TriangleSetTopologyContainer *fromTopology, topology::PointSetTopologyContainer *toTopology)
 
virtual helper::vector< TrianglegetElements () override
 
virtual helper::vector< SReal > getBaryCoef (const Real *f) override
 
helper::vector< SReal > getBaryCoef (const Real fx, const Real fy)
 
void computeBase (Mat3x3d &base, const typename In::VecCoord &in, const Triangle &element) override
 
void computeCenter (Vector3 &center, const typename In::VecCoord &in, const Triangle &element) override
 
void computeDistance (double &d, const Vector3 &v) override
 
void addPointInElement (const int elementIndex, const SReal *baryCoords) override
 

Attribute details

Constructor details

Function details

template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::addPointInElement ( const int  elementIndex,
const SReal *  baryCoords 
)
overrideprotected
template<class In , class Out >
int sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::addPointInTriangle ( const int  triangleIndex,
const SReal *  baryCoords 
)
override
template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::computeBase ( Mat3x3d base,
const typename In::VecCoord &  in,
const Triangle element 
)
overrideprotected
template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::computeCenter ( Vector3 &  center,
const typename In::VecCoord &  in,
const Triangle element 
)
overrideprotected
template<class In , class Out >
void sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::computeDistance ( double d,
const Vector3 &  v 
)
overrideprotected
template<class In , class Out >
int sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::createPointInTriangle ( const typename Out::Coord &  p,
int  triangleIndex,
const typename In::VecCoord *  points 
)
override
template<class In , class Out >
helper::vector< SReal > sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::getBaryCoef ( const Real f)
overrideprotectedvirtual
template<class In , class Out >
helper::vector< SReal > sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::getBaryCoef ( const Real  fx,
const Real  fy 
)
protected
template<class In , class Out >
helper::vector< Triangle > sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::getElements ( )
overrideprotectedvirtual
template<class In , class Out >
sofa::component::mapping::BarycentricMapperTriangleSetTopology< In, Out >::SOFA_CLASS ( SOFA_TEMPLATE2(BarycentricMapperTriangleSetTopology< In, Out >, In, Out ,
SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Triangle  
)