Regina Calculation Engine
|
Represents a vertex in the skeleton of a triangulation. More...
#include <triangulation/nvertex.h>
Public Member Functions | |
virtual | ~NVertex () |
Default destructor. More... | |
const std::vector < NVertexEmbedding > & | getEmbeddings () const |
Returns the list of descriptors detailing how this vertex forms a part of various tetrahedra in the triangulation. More... | |
unsigned long | getNumberOfEmbeddings () const |
Returns the number of descriptors in the list returned by getEmbeddings(). More... | |
const NVertexEmbedding & | getEmbedding (unsigned long index) const |
Returns the requested descriptor from the list returned by getEmbeddings(). More... | |
NComponent * | getComponent () const |
Returns the component of the triangulation to which this vertex belongs. More... | |
NBoundaryComponent * | getBoundaryComponent () const |
Returns the boundary component of the triangulation to which this vertex belongs. More... | |
unsigned long | getDegree () const |
Returns the degree of this vertex. More... | |
int | getLink () const |
Returns a description of the link of the vertex. More... | |
bool | isLinkClosed () const |
Determines if the link of this vertex is closed. More... | |
bool | isIdeal () const |
Determines if this vertex is an ideal vertex. More... | |
bool | isBoundary () const |
Determines if this vertex lies on the boundary of the triangulation. More... | |
bool | isStandard () const |
Determines if this vertex is standard. More... | |
bool | isLinkOrientable () const |
Determines if the vertex link is orientable. More... | |
long | getLinkEulerCharacteristic () const |
Returns the Euler characteristic of the vertex link. More... | |
void | writeTextShort (std::ostream &out) const |
Writes this object in short text format to the given output stream. More... | |
![]() | |
ShareableObject () | |
Default constructor that does nothing. More... | |
virtual | ~ShareableObject () |
Default destructor that does nothing. More... | |
virtual void | writeTextLong (std::ostream &out) const |
Writes this object in long text format to the given output stream. More... | |
std::string | toString () const |
Returns the output from writeTextShort() as a string. More... | |
std::string | toStringLong () const |
Returns the output from writeTextLong() as a string. More... | |
![]() | |
long | markedIndex () const |
Returns the index at which this object is stored in an NMarkedVector. More... | |
Static Public Attributes | |
static const int | SPHERE |
Specifies a vertex link that is a sphere. More... | |
static const int | DISC |
Specifies a vertex link that is a disc. More... | |
static const int | TORUS |
Specifies a vertex link that is a torus. More... | |
static const int | KLEIN_BOTTLE |
Specifies a vertex link that is a Klein bottle. More... | |
static const int | NON_STANDARD_CUSP |
Specifies a vertex link that is closed and is not a sphere, torus or Klein bottle. More... | |
static const int | NON_STANDARD_BDRY |
Specifies a vertex link that has boundary and is not a disc. More... | |
Friends | |
class | NTriangulation |
Allow access to private members. More... | |
Additional Inherited Members | |
![]() | |
noncopyable () | |
A constructor which does nothing. More... | |
~noncopyable () | |
A destructor which does nothing. More... | |
Represents a vertex in the skeleton of a triangulation.
Vertices are highly temporary; once a triangulation changes, all its vertex objects will be deleted and new ones will be created.
|
inlinevirtual |
Default destructor.
|
inline |
Returns the boundary component of the triangulation to which this vertex belongs.
See the note in the NBoundaryComponent overview regarding what happens if the vertex link is a multiply punctured surface. Note that this makes the vertex non-standard and the triangulation invalid.
An ideal vertex will have its own individual boundary component to which it belongs.
|
inline |
Returns the component of the triangulation to which this vertex belongs.
|
inline |
Returns the degree of this vertex.
Note that this is identical to getNumberOfEmbeddings().
|
inline |
Returns the requested descriptor from the list returned by getEmbeddings().
index | the index of the requested descriptor. This should be between 0 and getNumberOfEmbeddings()-1 inclusive. |
|
inline |
Returns the list of descriptors detailing how this vertex forms a part of various tetrahedra in the triangulation.
Note that if this vertex represents multiple vertices of a particular tetrahedron, then there will be multiple embedding descriptors in the list regarding that tetrahedron.
|
inline |
Returns a description of the link of the vertex.
|
inline |
Returns the Euler characteristic of the vertex link.
|
inline |
Returns the number of descriptors in the list returned by getEmbeddings().
Note that this is identical to getDegree().
|
inline |
Determines if this vertex lies on the boundary of the triangulation.
Ideal vertices are included as being on the boundary. In fact, the only vertices not considered as on the boundary are those whose links are spheres.
true
if and only if this vertex lies on the boundary.
|
inline |
Determines if this vertex is an ideal vertex.
This requires the vertex link to be closed and not a 2-sphere.
true
if and only if this is an ideal vertex.
|
inline |
Determines if the link of this vertex is closed.
true
if and only if the link of this vertex is closed.
|
inline |
Determines if the vertex link is orientable.
true
if and only if the vertex link is orientable.
|
inline |
Determines if this vertex is standard.
This requires the vertex link to be a sphere, disc, torus or Klein bottle.
true
if and only if this vertex is standard.
|
virtual |
Writes this object in short text format to the given output stream.
The output should fit on a single line and no newline should be written.
out | the output stream to which to write. |
Implements regina::ShareableObject.
|
friend |
Allow access to private members.
|
static |
Specifies a vertex link that is a disc.
|
static |
Specifies a vertex link that is a Klein bottle.
|
static |
Specifies a vertex link that has boundary and is not a disc.
|
static |
Specifies a vertex link that is closed and is not a sphere, torus or Klein bottle.
|
static |
Specifies a vertex link that is a sphere.
|
static |
Specifies a vertex link that is a torus.