SOFA API  014b24ea
Open source framework for multi-physics simuation
sofa::component::collision::ContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes > Class Template Reference

#include <BarycentricContactMapper.h>

Mapper for TriangleModel. More...

Inheritance diagram for sofa::component::collision::ContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >:

Detailed Description

template<class DataTypes>
class sofa::component::collision::ContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >

Mapper for TriangleModel.

Public Member Functions

int addPoint (const Coord &P, int index, Real &)
 Adding a point of the global referentiel to the mapping. More...
 
int addPointB (const Coord &P, int index, Real &, const defaulttype::Vector3 &baryP)
 
int addPointB (const Coord &P, int index, Real &r)
 
- Public Member Functions inherited from sofa::component::collision::BarycentricContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >
 BarycentricContactMapper ()
 
void setCollisionModel (MCollisionModel *model)
 
void cleanup ()
 
MMechanicalStatecreateMapping (const char *name="contactPoints")
 
void resize (int size)
 
void update ()
 
void updateXfree ()
 
void updateX0 ()
 
- Public Member Functions inherited from sofa::component::collision::BaseContactMapper< DataTypes >
virtual ~BaseContactMapper ()
 
virtual int addBaryPoint (const sofa::defaulttype::Vector3 &, int, Real &)
 Adding a point of the local referentiel(barycentric coordinate) to the mapping. More...
 
virtual int addPointB (const Coord &P, int elementId, Real &r, const sofa::defaulttype::Vector3 &)
 
int addPointB (const Coord &P, int elementId, Real &r)
 

Additional Inherited Members

- Public Attributes inherited from sofa::component::collision::BarycentricContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >
MCollisionModelmodel
 
MMapping::SPtr mapping
 
MMapper::SPtr mapper
 
- Static Public Member Functions inherited from sofa::component::collision::BaseContactMapper< DataTypes >
static BaseContactMapper< DataTypes > * Create (core::CollisionModel *model, const std::string &name=std::string("default"))
 
static ContactMapper< TCollisionModel, DataTypes > * create (ContactMapper< TCollisionModel, DataTypes > *, core::CollisionModel *arg)
 

Function details

template<class DataTypes >
int sofa::component::collision::ContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >::addPoint ( const Coord ,
int  ,
Real  
)
inlinevirtual

Adding a point of the global referentiel to the mapping.

Reimplemented from sofa::component::collision::BaseContactMapper< DataTypes >.

template<class DataTypes >
int sofa::component::collision::ContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >::addPointB ( const Coord P,
int  index,
Real ,
const defaulttype::Vector3 &  baryP 
)
inline
template<class DataTypes >
int sofa::component::collision::ContactMapper< TriangleCollisionModel< sofa::defaulttype::Vec3Types >, DataTypes >::addPointB ( const Coord P,
int  index,
Real r 
)
inline