SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::component::collision::geometry::Tetrahedron Class Reference

#include <TetrahedronModel.h>

Inheritance diagram for sofa::component::collision::geometry::Tetrahedron:

Public Member Functions

 Tetrahedron (TetrahedronCollisionModel *model, Index index)
 
 Tetrahedron ()
 
 Tetrahedron (const core::CollisionElementIterator &i)
 
const type::Vec3p1 () const
 
const type::Vec3p2 () const
 
const type::Vec3p3 () const
 
const type::Vec3p4 () const
 
int p1Index () const
 
int p2Index () const
 
int p3Index () const
 
int p4Index () const
 
const type::Vec3p1Free () const
 
const type::Vec3p2Free () const
 
const type::Vec3p3Free () const
 
const type::Vec3p4Free () const
 
const type::Vec3v1 () const
 
const type::Vec3v2 () const
 
const type::Vec3v3 () const
 
const type::Vec3v4 () const
 
type::Vec3 getBary (const type::Vec3 &p) const
 
type::Vec3 getDBary (const type::Vec3 &v) const
 
type::Vec3 getCoord (const type::Vec3 &b) const
 
type::Vec3 getDCoord (const type::Vec3 &b) const
 
- Public Member Functions inherited from sofa::core::TCollisionElementIterator< TetrahedronCollisionModel >
 TCollisionElementIterator (Model *model=nullptr, Index index=0)
 
 TCollisionElementIterator (Model *model, Index index, VIterator it, VIterator itend)
 
 TCollisionElementIterator (Model *model, VIterator it, VIterator itend)
 
bool isActive (core::CollisionModel *cm=nullptr) const
 
bool operator== (const TCollisionElementIterator< Model2 > &i) const
 
bool operator!= (const TCollisionElementIterator< Model2 > &i) const
 
TCollisionElementIteratoroperator+= (int n)
 
TCollisionElementIterator operator+ (int n) const
 
bool valid () const
 
ModelgetCollisionModel () const
 Return the CollisionModel containing the referenced element. More...
 
std::pair< CollisionElementIterator, CollisionElementIteratorgetInternalChildren () const
 
std::pair< CollisionElementIterator, CollisionElementIteratorgetExternalChildren () const
 
bool isLeaf () const
 
bool canCollideWith (const TCollisionElementIterator< Model > &elem) const
 
SReal getProximity () const
 Distance to the actual (visual) surface. More...
 
SReal getContactStiffness () const
 Contact stiffness. More...
 
SReal getContactFriction () const
 Contact friction (damping) coefficient. More...
 
void draw (const core::visual::VisualParams *vparams)
 
- Public Member Functions inherited from sofa::core::BaseCollisionElementIterator
 BaseCollisionElementIterator (Index index=0)
 
 BaseCollisionElementIterator (Index index, VIterator it, VIterator itend)
 
 BaseCollisionElementIterator (VIterator it, VIterator itend)
 
void next ()
 Increment this iterator to reference the next element. More...
 
BaseCollisionElementIteratoroperator++ ()
 Prefix increment this iterator to reference the next element. More...
 
BaseCollisionElementIterator operator++ (int)
 Postfix increment this iterator to reference the next element. More...
 
BaseCollisionElementIteratoroperator+= (int n)
 
BaseCollisionElementIterator operator+ (int n) const
 
Index getIndex () const
 
const VIteratorgetVIterator () const
 Return the current iterator in the vector of indices, in case such a vector is currently used. More...
 
const VIteratorgetVIteratorEnd () const
 Return the end iterator in the vector of indices, in case such a vector is currently used. More...
 

Additional Inherited Members

- Public Attributes inherited from sofa::core::TCollisionElementIterator< TetrahedronCollisionModel >
Modelmodel
 CollisionModel containing the referenced element. More...
 
- Protected Attributes inherited from sofa::core::BaseCollisionElementIterator
Index index
 index of the referenced element inside the CollisionModel. More...
 
VIterator it
 current position in a vector of indices, in case this iterator traverse a non-contiguous set of indices More...
 
VIterator itend
 end position in a vector of indices, in case this iterator traverse a non-contiguous set of indices More...
 
- Static Protected Attributes inherited from sofa::core::BaseCollisionElementIterator
static std::vector< int > SOFA_CORE_API emptyVector
 empty vector to be able to initialize the iterator to an empty pair More...
 

Constructor details

◆ Tetrahedron() [1/3]

sofa::component::collision::geometry::Tetrahedron::Tetrahedron ( TetrahedronCollisionModel model,
Index  index 
)
inline

◆ Tetrahedron() [2/3]

sofa::component::collision::geometry::Tetrahedron::Tetrahedron ( )
inline

◆ Tetrahedron() [3/3]

sofa::component::collision::geometry::Tetrahedron::Tetrahedron ( const core::CollisionElementIterator i)
inlineexplicit

Function details

◆ getBary()

type::Vec3 sofa::component::collision::geometry::Tetrahedron::getBary ( const type::Vec3 p) const
inline

◆ getCoord()

type::Vec3 sofa::component::collision::geometry::Tetrahedron::getCoord ( const type::Vec3 b) const
inline

◆ getDBary()

type::Vec3 sofa::component::collision::geometry::Tetrahedron::getDBary ( const type::Vec3 v) const
inline

◆ getDCoord()

type::Vec3 sofa::component::collision::geometry::Tetrahedron::getDCoord ( const type::Vec3 b) const
inline

◆ p1()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p1 ( ) const
inline

◆ p1Free()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p1Free ( ) const
inline

◆ p1Index()

int sofa::component::collision::geometry::Tetrahedron::p1Index ( ) const
inline

◆ p2()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p2 ( ) const
inline

◆ p2Free()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p2Free ( ) const
inline

◆ p2Index()

int sofa::component::collision::geometry::Tetrahedron::p2Index ( ) const
inline

◆ p3()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p3 ( ) const
inline

◆ p3Free()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p3Free ( ) const
inline

◆ p3Index()

int sofa::component::collision::geometry::Tetrahedron::p3Index ( ) const
inline

◆ p4()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p4 ( ) const
inline

◆ p4Free()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::p4Free ( ) const
inline

◆ p4Index()

int sofa::component::collision::geometry::Tetrahedron::p4Index ( ) const
inline

◆ v1()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::v1 ( ) const
inline

◆ v2()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::v2 ( ) const
inline

◆ v3()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::v3 ( ) const
inline

◆ v4()

const type::Vec3 & sofa::component::collision::geometry::Tetrahedron::v4 ( ) const
inline