Struct PolyFace

Struct Documentation

struct PolyFace

Data structure for a polygon face.

edges An array of 4 integers. [0] = Vertex index of edge start. [1] = Vertex index of edge end. [2] = Index of the face adjoining this edge (not the current face). -1 if not connected to anything,-1*boundary_index if connected to a boundary. [3] = Edge number of adjoining face. -1 if not connected to anything. 0 if a boundary.

face_indices [0] = Index of the adjoining cell. -1 if not connected to anything. -1*boundary_index if connected to a boundary. [1] = Face number of adjoining cell. -1 if not connected to anything. 0 if a boundary. [2] = Partition ID of adjacent cell.

Public Members

std::vector<int> v_indices
std::vector<std::vector<int>> edges
std::array<int, 3> face_indices = {{-1, -1, -1}}
Vector3 geometric_normal
Vector3 face_centroid
bool invalidated = {false}