Regina 7.3 Calculation Engine
|
Static Public Member Functions | |
static constexpr Perm< dim+1 > | ordering (int face) |
Given a subdim-face number within a dim-dimensional simplex, returns the corresponding canonical ordering of the simplex vertices. More... | |
static constexpr int | faceNumber (Perm< dim+1 > vertices) |
Identifies which subdim-face in a dim-dimensional simplex is represented by the first (subdim + 1) elements of the given permutation. More... | |
static constexpr bool | containsVertex (int face, int vertex) |
Tests whether the given subdim-face of a dim-dimensional simplex contains the given vertex of the simplex. More... | |
Static Public Attributes | |
static constexpr int | triangleNumber [5][5][5] |
A table that maps vertices of a pentachoron to triangle numbers. More... | |
static constexpr int | triangleVertex [10][3] |
A table that maps triangles of a pentachoron to vertex numbers. More... | |
static constexpr int | oppositeDim |
The dimension of the faces opposite these in a top-dimensional simplex of a dim-dimensional triangulation. More... | |
static constexpr bool | lexNumbering |
true if faces are numbered in lexicographical order according to their vertices, or false if faces are numbered in reverse lexicographical order. More... | |
static constexpr int | nFaces |
The total number of subdim-dimensional faces in each dim-dimensional simplex. More... | |
Static Protected Attributes | |
static constexpr int | lexDim |
Whichever of subdim or oppositeDim uses lexicographical face numbering. More... | |
|
staticconstexprinherited |
Tests whether the given subdim-face of a dim-dimensional simplex contains the given vertex of the simplex.
face | a subdim-face number in a dim-simplex; this must be between 0 and (dim+1 choose subdim+1)-1 inclusive. |
vertex | a vertex number in a dim-simplex; this must be between 0 and dim inclusive. |
true
if and only if the given subdim-face contains the given vertex.
|
staticconstexprinherited |
Identifies which subdim-face in a dim-dimensional simplex is represented by the first (subdim + 1) elements of the given permutation.
In other words, this routine identifies which subdim-face number within a dim-dimensional simplex spans vertices vertices[0, ..., subdim]
.
vertices | a permutation whose first (subdim + 1) elements represent some vertex numbers in a dim-simplex. |
|
staticconstexprinherited |
Given a subdim-face number within a dim-dimensional simplex, returns the corresponding canonical ordering of the simplex vertices.
If this canonical ordering is c, then c[0,...,subdim] will be the vertices of the given face in increasing numerical order. That is, c[0] < ... < c[subdim]. The remaining images c[(subdim + 1),...,dim] will be ordered arbitrarily.
Note that this is not the same permutation as returned by Simplex<dim>::faceMapping<subdim>():
face | identifies which subdim-face of a dim-dimensional simplex to query. This must be between 0 and (dim+1 choose subdim+1)-1 inclusive. |
|
staticconstexprprotectedinherited |
Whichever of subdim or oppositeDim uses lexicographical face numbering.
|
staticconstexprinherited |
true
if faces are numbered in lexicographical order according to their vertices, or false
if faces are numbered in reverse lexicographical order.
|
staticconstexprinherited |
The total number of subdim-dimensional faces in each dim-dimensional simplex.
|
staticconstexprinherited |
The dimension of the faces opposite these in a top-dimensional simplex of a dim-dimensional triangulation.
|
staticconstexpr |
A table that maps vertices of a pentachoron to triangle numbers.
Triangles in a pentachoron are numbered 0,...,9. This table converts vertices to triangle numbers; in particular, the triangle spanned by vertices i, j and k of a pentachoron is triangle number triangleNumber[i][j][k]
. Here i, j and k must be distinct, must be between 0 and 4 inclusive, and may be given in any order. The resulting triangle number will be between 0 and 9 inclusive.
triangleNumber[i][j][k]
is equivalent to calling faceNumber(p)
, where p is a permutation that maps 0,1,2 to i,j,k in some order.
|
staticconstexpr |
A table that maps triangles of a pentachoron to vertex numbers.
Triangles in a pentachoron are numbered 0,...,9. This table converts triangle numbers to vertices; in particular, triangle i in a pentachoron is spanned by vertices triangleVertex[i][0]
, triangleVertex[i][1]
and triangleVertex[i][2]
. Here i must be between 0 and 9 inclusive; the resulting vertex numbers will be between 0 and 4 inclusive.
It is guaranteed that triangleVertex[i][0]
will always be smaller than triangleVertex[i][1]
, which in turn will always be smaller than triangleVertex[i][2]
.
triangleVertex[i][j]
is equivalent to calling ordering(i)[j]
.