SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::component::collision::TriangleInfo Class Reference

#include <TriangleLocalMinDistanceFilter.h>

LocalMinDistance cone information class for a Triangle collision primitive. More...

Inheritance diagram for sofa::component::collision::TriangleInfo:

Detailed Description

LocalMinDistance cone information class for a Triangle collision primitive.

Protected Attributes

sofa::defaulttype::Vector3 m_normal
 Stored normal of the triangle. More...
 
- Protected Attributes inherited from sofa::component::collision::InfoFilter
int m_revision
 Last filter update revision. More...
 
const LocalMinDistanceFilterm_lmdFilters
 The LocalMinDistanceFilters object that contains this InfoFilter. More...
 
core::topology::BaseMeshTopologybase_mesh_topology
 
const sofa::helper::vector< sofa::defaulttype::Vector3 > * position_filtering
 

Public Member Functions

 TriangleInfo (LocalMinDistanceFilter *lmdFilters=nullptr)
 Default constructor. More...
 
 ~TriangleInfo () override
 Default destructor. More...
 
bool validate (const index_type, const defaulttype::Vector3 &) override
 Returns the validity of a detected contact according to this TriangleInfo. More...
 
void buildFilter (index_type) override
 Computes the region of interest cone of the Triangle primitive. More...
 
- Public Member Functions inherited from sofa::component::collision::InfoFilter
 InfoFilter (LocalMinDistanceFilter *lmdFilters)
 Default constructor. More...
 
virtual ~InfoFilter ()
 Default destructor. More...
 
virtual bool isValid (void)
 Returns cone information validity (up to date or not?). More...
 
virtual void setValid ()
 Sets cone information validity. More...
 
const LocalMinDistanceFiltergetLMDFilters (void)
 Returns the LocalMinDistanceFilters object that contains this InfoFilter. More...
 
void setLMDFilters (const LocalMinDistanceFilter *lmdFilters)
 Sets the LocalMinDistanceFilters object that contains this InfoFilter. More...
 
void setBaseMeshTopology (core::topology::BaseMeshTopology *bmt)
 
void setPositionFiltering (const sofa::helper::vector< sofa::defaulttype::Vector3 > *x)
 

Friends

std::ostream & operator<< (std::ostream &os, const TriangleInfo &)
 Output stream. More...
 
std::istream & operator>> (std::istream &in, TriangleInfo &)
 Input stream. More...
 

Additional Inherited Members

Attribute details

sofa::defaulttype::Vector3 sofa::component::collision::TriangleInfo::m_normal
protected

Stored normal of the triangle.

Constructor details

sofa::component::collision::TriangleInfo::TriangleInfo ( LocalMinDistanceFilter lmdFilters = nullptr)

Default constructor.

sofa::component::collision::TriangleInfo::~TriangleInfo ( )
inlineoverride

Default destructor.

Function details

void sofa::component::collision::TriangleInfo::buildFilter ( index_type  tri_index)
overridevirtual

Computes the region of interest cone of the Triangle primitive.

Implements sofa::component::collision::InfoFilter.

bool sofa::component::collision::TriangleInfo::validate ( const index_type  tri_index,
const defaulttype::Vector3 &  PQ 
)
overridevirtual

Returns the validity of a detected contact according to this TriangleInfo.

Implements sofa::component::collision::InfoFilter.

Related details

std::ostream& operator<< ( std::ostream &  os,
const TriangleInfo  
)
friend

Output stream.

std::istream& operator>> ( std::istream &  in,
TriangleInfo  
)
friend

Input stream.