#include <PenalityContactForceField.h>
|
| PenalityContact (sofa::Index _m1=0, sofa::Index _m2=0, sofa::Index _index1=0, sofa::Index _index2=0, Deriv _norm=Deriv(), Real _dist=(Real) 0, Real _ks=(Real) 0, Real=(Real) 0, Real=(Real) 0, Real _pen=(Real) 0, int _age=0) |
|
◆ age
◆ dist
distance threshold below which a repulsion force is applied
◆ index1
◆ index2
the indices of the two collision elements (currently unused)
◆ ks
◆ m1
◆ m2
the indices of the vertices the force is applied to
◆ norm
contact normal, from m1 to m2
◆ pen
current penetration depth
◆ PenalityContact()
template<class T >
sofa::component::collision::response::contact::PenalityContact< T >::PenalityContact |
( |
sofa::Index |
_m1 = 0 , |
|
|
sofa::Index |
_m2 = 0 , |
|
|
sofa::Index |
_index1 = 0 , |
|
|
sofa::Index |
_index2 = 0 , |
|
|
Deriv |
_norm = Deriv() , |
|
|
Real |
_dist = (Real)0 , |
|
|
Real |
_ks = (Real)0 , |
|
|
Real |
= (Real)0 , |
|
|
Real |
= (Real)0 , |
|
|
Real |
_pen = (Real)0 , |
|
|
int |
_age = 0 |
|
) |
| |
|
inline |
◆ operator<<
template<class T >
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const PenalityContact< T > & |
c |
|
) |
| |
|
friend |
◆ operator>>