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().
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.
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.
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.