struct Tetrahedron

Contains information about a single tetrahedron.

Public

Fields

Vertices

i32[4] Vertices

Indices of vertices that form the tetrahedron pointing to an external point array.

Neighbors

i32[4] Neighbors

Indices pointing to neighbor tetrahedrons.

Each neighbor index maps to the array, so neighbor/vertex pair at the same location will be the only neighbor not containing that vertex (i.e. neighbor opposite to the vertex). If a tetrahedron is on the volume edge, it has only three neighbors and its last neighbor will be set to -1.