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

#include <BarycentricMapperQuadSetTopology.h>

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

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

Detailed Description

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

Class allowing barycentric mapping computation on a QuadSetTopology.

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperQuadSetTopology, In, Out), SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Quad))
 
Index addPointInQuad (const Index index, const SReal *baryCoords) override
 
Index createPointInQuad (const typename Out::Coord &p, Index index, const typename In::VecCoord *points) override
 
 ~BarycentricMapperQuadSetTopology () override=default
 

Protected Member Functions

 BarycentricMapperQuadSetTopology (sofa::core::topology::TopologyContainer *fromTopology, core::topology::BaseMeshTopology *toTopology)
 
virtual type::vector< QuadgetElements () override
 
virtual type::vector< SReal > getBaryCoef (const Real *f) override
 
type::vector< SReal > getBaryCoef (const Real fx, const Real fy)
 
void computeBase (Mat3x3d &base, const typename In::VecCoord &in, const Quad &element) override
 
void computeCenter (Vec3 &center, const typename In::VecCoord &in, const Quad &element) override
 
void computeDistance (SReal &d, const Vec3 &v) override
 
void addPointInElement (const Index elementIndex, const SReal *baryCoords) override
 

Constructor details

◆ ~BarycentricMapperQuadSetTopology()

template<class In , class Out >
sofa::component::mapping::linear::BarycentricMapperQuadSetTopology< In, Out >::~BarycentricMapperQuadSetTopology ( )
overridedefault

◆ BarycentricMapperQuadSetTopology()

Function details

◆ addPointInElement()

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

◆ addPointInQuad()

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

◆ computeBase()

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

◆ computeCenter()

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

◆ computeDistance()

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

◆ createPointInQuad()

template<class In , class Out >
BarycentricMapperQuadSetTopology< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperQuadSetTopology< In, Out >::createPointInQuad ( const typename Out::Coord &  p,
Index  index,
const typename In::VecCoord *  points 
)
override

◆ getBaryCoef() [1/2]

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

◆ getBaryCoef() [2/2]

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

◆ getElements()

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

◆ SOFA_CLASS()

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