![]() |
TrinityCore
|
#include <MeshAlg.h>
Public Member Functions | |
| Face () | |
| bool | containsVertex (int v) const |
| bool | containsEdge (int e) const |
| bool | containsDirectedEdge (int e) const |
Public Attributes | |
| int | vertexIndex [3] |
| int | edgeIndex [3] |
Static Public Attributes | |
| static const int | NONE = INT_MIN |
Oriented, indexed triangle.
| G3D::MeshAlg::Face::Face | ( | ) |
|
inline |
Contains the forward edge e if e >= 0 and the backward edge ~e otherwise.
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:
|
inline |
Here is the call graph for this function:| int G3D::MeshAlg::Face::edgeIndex[3] |
Edge indices in counter-clockwise order. Edges are undirected, so it is important to know which way each edge is pointing in a face. This is encoded using negative indices.
If edgeIndex[i] >= 0 then this face contains the directed edge between vertex indices edgeArray[face.edgeIndex[i]].vertexIndex[0] and edgeArray[face.edgeIndex[i]].vertexIndex[1].
If edgeIndex[i] < 0 then ~edgeIndex[i] (i.e. the two's complement of) is used and this face contains the directed edge between vertex indices edgeArray[~face.edgeIndex[i]].vertexIndex[0] and edgeArray[~face.edgeIndex[i]].vertexIndex[1].
Degenerate faces may include the same edge multiple times.
|
static |
Used by Edge::faceIndex to indicate a missing face. This is a large negative value.
| int G3D::MeshAlg::Face::vertexIndex[3] |
Vertices in the face in counter-clockwise order. Degenerate faces may include the same vertex multiple times.
1.8.8