Regina Calculation Engine
|
Represents a 2-sphere made from two triangles glued together along their three edges. More...
#include <subcomplex/npillowtwosphere.h>
Public Member Functions | |
NPillowTwoSphere * | clone () const |
Returns a newly created clone of this structure. More... | |
NTriangle * | getTriangle (int index) const |
Returns one of the two triangles whose boundaries are joined. More... | |
NTriangle * | getFace (int index) const |
A deprecated alias for getTriangle(). More... | |
NPerm4 | getTriangleMapping () const |
Returns a permutation describing how the boundaries of the two triangles are joined. More... | |
NPerm4 | getFaceMapping () const |
A deprecated alias for getTriangleMapping(). 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 | str () const |
Returns the output from writeTextShort() as a string. More... | |
std::string | toString () const |
A deprecated alias for str(), which returns the output from writeTextShort() as a string. More... | |
std::string | detail () const |
Returns the output from writeTextLong() as a string. More... | |
std::string | toStringLong () const |
A deprecated alias for detail(), which returns the output from writeTextLong() as a string. More... | |
Static Public Member Functions | |
static NPillowTwoSphere * | formsPillowTwoSphere (NTriangle *tri1, NTriangle *tri2) |
Determines if the two given triangles together form a pillow 2-sphere. More... | |
Additional Inherited Members | |
![]() | |
noncopyable () | |
A constructor which does nothing. More... | |
~noncopyable () | |
A destructor which does nothing. More... | |
Represents a 2-sphere made from two triangles glued together along their three edges.
The two triangles must be distinct and the three edges of each triangle must also be distinct. Neither of the triangles may be boundary triangles. These two triangless together form an embedded 2-sphere in the triangulation (with the exception that two or three points of the sphere corresponding to the triangles vertices may be identified).
This 2-sphere can be cut along and the two resulting 2-sphere boundaries filled in with 3-balls, and the resulting triangulation has the same number of tetrahedra as the original. If the original 2-sphere was separating, the resulting triangulation will contain the two terms of the corresponding connected sum.
NPillowTwoSphere* regina::NPillowTwoSphere::clone | ( | ) | const |
Returns a newly created clone of this structure.
|
static |
Determines if the two given triangles together form a pillow 2-sphere.
tri1 | the first triangle to examine. |
tri2 | the second triangle to examine. |
null
if the given triangles do not form a pillow 2-sphere.
|
inline |
A deprecated alias for getTriangle().
This routine returns one of the two triangles whose boundaries are joined. See getTriangle() for further details.
index | specifies which of the two triangles to return; this must be either 0 or 1. |
|
inline |
A deprecated alias for getTriangleMapping().
This routine returns a permutation describing how the boundaries of the two triangles are joined. See getTriangleMapping() for further details.
|
inline |
Returns one of the two triangles whose boundaries are joined.
index | specifies which of the two triangles to return; this must be either 0 or 1. |
|
inline |
Returns a permutation describing how the boundaries of the two triangles are joined.
The permutation will map vertices (0,1,2) of getTriangle(0)
to vertices (0,1,2) of getTriangle(1)
. The map will represent how the vertices of the triangles are identified by the three edge gluings.
|
inlinevirtual |
Writes this object in short text format to the given output stream.
The output should be human-readable, should fit on a single line, and should not end with a newline.
out | the output stream to which to write. |
Implements regina::ShareableObject.