Represents a 2-sphere made from two triangles glued together along their three edges.
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.
These objects are small enough to pass by value and swap with std::swap(), with no need for any specialised move operations or swap functions. However, the only way to create them (aside from copying or moving) is via the static member function recognise().
template<class T , bool supportsUtf8 = false>
Returns a detailed text representation of this object.
This text may span many lines, and should provide the user with all the information they could want. It should be human-readable, should not contain extremely long lines (which cause problems for users reading the output in a terminal), and should end with a final newline. There are no restrictions on the underlying character set.
- Returns
- a detailed text representation of this object.
bool regina::PillowTwoSphere::operator!= |
( |
const PillowTwoSphere & |
other | ) |
const |
|
inline |
Determines whether this and the given object represent different specific presentations of a pillow 2-sphere.
Specifically, two pillow 2-spheres will compare as equal if and only if they join the same two numbered triangles, presented in the same order, using the same mapping of triangle vertices.
Since this test looks at triangle numbers and not the specific Triangle objects, it is meaningful to compare pillow 2-spheres within different triangulations.
- Parameters
-
other | the pillow 2-sphere to compare with this. |
- Returns
true
if and only if this and the given object represent different specific presentations of a pillow 2-sphere.
bool regina::PillowTwoSphere::operator== |
( |
const PillowTwoSphere & |
other | ) |
const |
|
inline |
Determines whether this and the given object represent the same specific presentation of a pillow 2-sphere.
Specifically, two pillow 2-spheres will compare as equal if and only if they join the same two numbered triangles, presented in the same order, using the same mapping of triangle vertices.
Since this test looks at triangle numbers and not the specific Triangle objects, it is meaningful to compare pillow 2-spheres within different triangulations.
- Parameters
-
other | the pillow 2-sphere to compare with this. |
- Returns
true
if and only if this and the given object represent the same specific presentation of a pillow 2-sphere.
template<class T , bool supportsUtf8 = false>
Returns a short text representation of this object.
This text should be human-readable, should use plain ASCII characters where possible, and should not contain any newlines.
Within these limits, this short text ouptut should be as information-rich as possible, since in most cases this forms the basis for the Python str()
and repr()
functions.
- Python
- The Python "stringification" function
str()
will use precisely this function, and for most classes the Python repr()
function will incorporate this into its output.
- Returns
- a short text representation of this object.
Perm< 4 > regina::PillowTwoSphere::triangleMapping |
( |
| ) |
const |
|
inline |
Returns a permutation describing how the boundaries of the two triangles are joined.
The permutation will map vertices (0,1,2) of triangle(0)
to vertices (0,1,2) of triangle(1)
. The map will represent how the vertices of the triangles are identified by the three edge gluings.
- Returns
- a permutation describing how the triangle boundaries are joined.
template<class T , bool supportsUtf8 = false>
Returns a short text representation of this object using unicode characters.
Like str(), this text should be human-readable, should not contain any newlines, and (within these constraints) should be as information-rich as is reasonable.
Unlike str(), this function may use unicode characters to make the output more pleasant to read. The string that is returned will be encoded in UTF-8.
- Returns
- a short text representation of this object.