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

#include <BarycentricMapperHexahedronSetTopology.h>

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

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

Detailed Description

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

Class allowing barycentric mapping computation on a HexahedronSetTopology.

Protected Attributes

std::set< Index > m_invalidIndex
 

Public Member Functions

 SOFA_CLASS (SOFA_TEMPLATE2(BarycentricMapperHexahedronSetTopology, In, Out), SOFA_TEMPLATE4(BarycentricMapperTopologyContainer, In, Out, MappingData, Hexahedron))
 
 ~BarycentricMapperHexahedronSetTopology () override=default
 
virtual type::vector< HexahedrongetElements () override
 
virtual type::vector< SRealgetBaryCoef (const Real *f) override
 
type::vector< SRealgetBaryCoef (const Real fx, const Real fy, const Real fz)
 
void computeBase (Mat3x3d &base, const typename In::VecCoord &in, const Hexahedron &element) override
 
void computeCenter (Vector3 &center, const typename In::VecCoord &in, const Hexahedron &element) override
 
void computeDistance (SReal &d, const Vector3 &v) override
 
void addPointInElement (const Index elementIndex, const SReal *baryCoords) override
 
Index addPointInCube (const Index index, const SReal *baryCoords) override
 
Index setPointInCube (const Index pointIndex, const Index cubeIndex, const SReal *baryCoords) override
 
void applyOnePoint (const Index &hexaId, typename Out::VecCoord &out, const typename In::VecCoord &in) override
 
void handleTopologyChange (core::topology::Topology *t) override
 
void handleTopologyChange (core::topology::Topology *t)
 

Protected Member Functions

 BarycentricMapperHexahedronSetTopology ()
 
 BarycentricMapperHexahedronSetTopology (sofa::core::topology::TopologyContainer *fromTopology, core::topology::BaseMeshTopology *toTopology)
 
void setTopology (sofa::core::topology::TopologyContainer *topology)
 

Attribute details

◆ m_invalidIndex

template<class In , class Out >
std::set<Index> sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::m_invalidIndex
protected

Constructor details

◆ ~BarycentricMapperHexahedronSetTopology()

◆ BarycentricMapperHexahedronSetTopology() [1/2]

◆ BarycentricMapperHexahedronSetTopology() [2/2]

Function details

◆ addPointInCube()

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

◆ addPointInElement()

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

◆ applyOnePoint()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::applyOnePoint ( const Index &  hexaId,
typename Out::VecCoord &  out,
const typename In::VecCoord &  in 
)
override

◆ computeBase()

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

◆ computeCenter()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::computeCenter ( Vector3 center,
const typename In::VecCoord &  in,
const Hexahedron element 
)
override

◆ computeDistance()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::computeDistance ( SReal d,
const Vector3 v 
)
override

◆ getBaryCoef() [1/2]

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

◆ getBaryCoef() [2/2]

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

◆ getElements()

template<class In , class Out >
type::vector< Hexahedron > sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::getElements
overridevirtual

◆ handleTopologyChange() [1/2]

◆ handleTopologyChange() [2/2]

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::handleTopologyChange ( core::topology::Topology t)
override

◆ setPointInCube()

template<class In , class Out >
BarycentricMapperHexahedronSetTopology< In, Out >::Index sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::setPointInCube ( const Index  pointIndex,
const Index  cubeIndex,
const SReal baryCoords 
)
override

◆ setTopology()

template<class In , class Out >
void sofa::component::mapping::linear::BarycentricMapperHexahedronSetTopology< In, Out >::setTopology ( sofa::core::topology::TopologyContainer topology)
protected

◆ SOFA_CLASS()

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