Specifies a single triangular prism in a tetrahedron. More...
#include <nprism.h>
Public Member Functions | |
NPrismSpec () | |
Creates a new uninitialised prism specifier. | |
NPrismSpec (unsigned long newTetIndex, int newEdge) | |
Creates a new prism specifier containing the given values. | |
NPrismSpec (const NPrismSpec &cloneMe) | |
Creates a new prism specifier that is a clone of the given specifier. | |
NPrismSpec & | operator= (const NPrismSpec &cloneMe) |
Copies the values from the given prism specifier into this specifier. | |
bool | operator== (const NPrismSpec &other) const |
Determines if this and the given prism specifier contain identical information. | |
Public Attributes | |
unsigned long | tetIndex |
The index in the triangulation of the tetrahedron containing the prism. | |
int | edge |
The edge of the tetrahedron that is contained in this prism. | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const NPrismSpec &spec) |
Specifies a single triangular prism in a tetrahedron.
If a tetrahedron contains normal quads, slicing along these quads splits the tetrahedron into two triangular prisms (and possibly some additional product regions). Each triangular prism contains two of the vertices and one of the edges of the original tetrahedron.
regina::NPrismSpec::NPrismSpec | ( | ) | [inline] |
Creates a new uninitialised prism specifier.
regina::NPrismSpec::NPrismSpec | ( | unsigned long | newTetIndex, | |
int | newEdge | |||
) | [inline] |
Creates a new prism specifier containing the given values.
newTetIndex | the index in the triangulation of the tetrahedron containing the prism. | |
newEdge | the edge of the tetrahedron that is contained in this prism; this must be between 0 and 5 inclusive. |
regina::NPrismSpec::NPrismSpec | ( | const NPrismSpec & | cloneMe | ) | [inline] |
Creates a new prism specifier that is a clone of the given specifier.
cloneMe | the prism specifier to clone. |
NPrismSpec & regina::NPrismSpec::operator= | ( | const NPrismSpec & | cloneMe | ) | [inline] |
Copies the values from the given prism specifier into this specifier.
cloneMe | the prism specifier whose values should be copied. |
bool regina::NPrismSpec::operator== | ( | const NPrismSpec & | other | ) | const [inline] |
Determines if this and the given prism specifier contain identical information.
other | the prism specifier to compare with this. |
true
if and only if this and the given prism specifier contain identical information. The edge of the tetrahedron that is contained in this prism.
unsigned long regina::NPrismSpec::tetIndex |
The index in the triangulation of the tetrahedron containing the prism.