SOFA API  c76874b7
Open source framework for multi-physics simuation
sofa::component::collision::CollidingPair Class Reference

#include <CollisionPM.h>

Public Attributes

core::CollisionElementIterator elem1
 
core::CollisionElementIterator elem2
 

Public Member Functions

 CollidingPair ()
 
 CollidingPair (const core::CollisionElementIterator &elem1_, const core::CollisionElementIterator &elem2_, core::collision::ElementIntersector *)
 
void init (const core::CollisionElementIterator &elem1_, const core::CollisionElementIterator &elem2_)
 

Attribute details

core::CollisionElementIterator sofa::component::collision::CollidingPair::elem1
core::CollisionElementIterator sofa::component::collision::CollidingPair::elem2

Constructor details

sofa::component::collision::CollidingPair::CollidingPair ( )
inline
sofa::component::collision::CollidingPair::CollidingPair ( const core::CollisionElementIterator elem1_,
const core::CollisionElementIterator elem2_,
core::collision::ElementIntersector  
)
inline

x and y value are used to identify this pair, the order is not important but the order of elem1_ and elem2_ is because when using intersect funcion we run inter->intersect(elem1,elem2,output), so the intersect method must handle the order you give.

Function details

void sofa::component::collision::CollidingPair::init ( const core::CollisionElementIterator elem1_,
const core::CollisionElementIterator elem2_ 
)
inline