![]() |
|
Public Member Functions | |
face () | |
Construct null. | |
face (label) | |
Construct given size. | |
face (const labelList &) | |
Construct from components. | |
face (Istream &) | |
Construct from Istream. | |
void | collapse () |
Collapse face by removing duplicate point labels. | |
pointField | points (const pointField &meshPoints) const |
Return the points corresponding to this face. | |
point | centre (const pointField &) const |
Centre point of face. | |
scalar | mag (const pointField &) const |
Scalar magnitude. | |
vector | normal (const pointField &) const |
Vector normal; magnitude is equal to area of face. | |
face | reverseFace () const |
Return face with reverse direction. | |
label | which (const label globalIndex) const |
Navigation through face vertices Which vertex on face (face index given a global index). | |
label | nextLabel (const label i) const |
Next vertex on face. | |
label | prevLabel (const label i) const |
Previous vertex on face. | |
scalar | sweptVol (const pointField &oldPoints, const pointField &newPoints) const |
Return the volume swept out by the face when its points move. | |
pointHit | ray (const point &p, const vector &n, const pointField &meshPoints, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) const |
Return potential intersection with face with a ray starting. | |
pointHit | nearestPoint (const point &p, const pointField &meshPoints) const |
Return nearest point to face. | |
scalar | contactSphereDiameter (const point &p, const vector &n, const pointField &meshPoints) const |
Return contact sphere diameter. | |
scalar | areaInContact (const pointField &points, const scalarField &v) const |
Return area in contact, given the displacement in vertices. | |
label | nEdges () const |
Return number of edges. | |
edgeList | edges () const |
Return edges in face point ordering, i.e. edges()[0] is edge. | |
edge | faceEdge (const label n) const |
Return n-th face edge. | |
label | nTriangles (const pointField &points) const |
Number of triangles after splitting. | |
void | triangles (const pointField &points, label &triI, faceList &triFaces) const |
Split into triangles using existing points. Result in. | |
void | nTrianglesQuads (const pointField &points, label &nTris, label &nQuads) const |
Number of triangles and quads after splitting. | |
void | trianglesQuads (const pointField &points, label &triI, label &quadI, faceList &triFaces, faceList &quadFaces) const |
Split into triangles and quads. Result in triFaces (starting at. | |
Friends | |
bool | operator== (const face &, const face &) |
bool | operator!= (const face &, const face &) |
Istream & | operator>> (Istream &, face &) |
|
Construct null.
|
|
Construct given size.
Definition at line 66 of file faceI.H. References Foam::labelList. |
|
Construct from components.
|
|
Construct from Istream.
Definition at line 80 of file faceI.H. References forAll, p, Foam::pointField, and UList::size(). |
Here is the call graph for this function:
|
Return area in contact, given the displacement in vertices.
|
|
Centre point of face.
|
|
Collapse face by removing duplicate point labels.
|
|
Return contact sphere diameter.
|
|
Return edges in face point ordering, i.e. edges()[0] is edge. between [0] and [1] |
|
Return n-th face edge.
Definition at line 118 of file faceI.H. References UList::fcIndex(), and UList::operator[](). |
Here is the call graph for this function:
|
Scalar magnitude.
|
|
Return nearest point to face.
|
|
Return number of edges.
Definition at line 111 of file faceI.H. References UList::fcIndex(). |
Here is the call graph for this function:
|
Next vertex on face.
Definition at line 125 of file faceI.H. References UList::operator[](), and UList::rcIndex(). |
Here is the call graph for this function:
|
Vector normal; magnitude is equal to area of face.
|
|
Number of triangles after splitting.
|
|
Number of triangles and quads after splitting.
|
|
Return the points corresponding to this face.
Definition at line 88 of file faceI.H. References UList::operator[](), and p. |
Here is the call graph for this function:
|
Previous vertex on face.
Definition at line 132 of file faceI.H. References Istream::readBegin(), and IOstream::version(). |
Here is the call graph for this function:
|
Return potential intersection with face with a ray starting. at p, direction n (does not need to be normalized) Does face-center decomposition and returns triangle intersection point closest to p. For a hit, the distance is signed. Positive number represents the point in front of triangle In case of miss the point is the nearest point on the face and the distance is the distance between the intersection point and the original point. The half-ray or full-ray intersection and the contact sphere adjustment of the projection vector is set by the intersection parameters |
|
Return face with reverse direction.
|
|
Return the volume swept out by the face when its points move.
|
|
Split into triangles using existing points. Result in. triFaces[triI..triI+nTri]. Splits intelligently to maximize triangle quality. |
|
Split into triangles and quads. Result in triFaces (starting at. triI and quadFaces (starting at quadI) |
|
Navigation through face vertices Which vertex on face (face index given a global index).
|
|
|
|
|
|
|