|
ESyS-Particle
2.3.4
|
Class representing the corner of a polygon. More...
#include <Corner.h>

Public Member Functions | |
| Corner (const Vec3 &, int, int) | |
| void | addEdge (Edge *) |
| void | addTriangle (Triangle *) |
| double | sep (const Vec3 &) const |
| bool | isValidContact (const Vec3 &) const |
| Vec3 | getDirectionFromPoint (const Vec3 &) const |
| void | move (const Vec3 &) |
| Vec3 | getPos () const |
| void | setPos (const Vec3 &p) |
| void | applyForce (const Vec3 &f) |
| int | getID () const |
| int | getTag () const |
| double | getDistMoved () |
| void | resetOldPos () |
Private Attributes | |
| Vec3 | m_p |
| Vec3 | m_old_pos |
| vector< Edge * > | m_edges |
| vector< Triangle * > | m_triangles |
| int | m_id |
| int | m_tag |
Class representing the corner of a polygon.
| Corner::Corner | ( | const Vec3 & | pos, |
| int | id, | ||
| int | tag | ||
| ) |
| void Corner::addEdge | ( | Edge * | edge | ) |
| void Corner::addTriangle | ( | Triangle * | triangle | ) |
| void Corner::applyForce | ( | const Vec3 & | f | ) |
References m_triangles.
Referenced by ECornerInteraction::calcForces().

get the unit direction vector between a point and the corner
| p | the point |
References m_p, and Vec3::unit().
Referenced by ECornerInteraction::calcForces().


|
inline |
References m_id.
|
inline |
References m_tag.
| bool Corner::isValidContact | ( | const Vec3 & | p | ) | const |
check if the contact between a particle at a point and the corner is valid or if there is a contact between the particle and any of the adjacent edges or triangles
| p | the center of the particle |
References m_edges, and m_triangles.
Referenced by ECornerInteraction::calcForces().

| double Corner::sep | ( | const Vec3 & | p | ) | const |
get distance between corner and point
| p | the point |
References m_p.
Referenced by ECornerInteraction::calcForces().

|
private |
Referenced by addEdge(), and isValidContact().
|
private |
Referenced by Corner(), getDistMoved(), and resetOldPos().
|
private |
Referenced by Corner(), getDirectionFromPoint(), getDistMoved(), getPos(), move(), resetOldPos(), sep(), and setPos().
|
private |
Referenced by addTriangle(), applyForce(), and isValidContact().