![]() |
|
Helper class to keep track of edges in tet mesh generation. More...
#include <gmsh_tet_mesh.template.h>
Public Member Functions | |
| TetEdge (const unsigned &vertex1, const unsigned &vertex2) | |
| unsigned | first_vertex_id () const |
| First vertex id. More... | |
| unsigned | second_vertex_id () const |
| Second vertex id. More... | |
| bool | is_reversed () const |
| bool | operator== (const TetEdge &tet_edge) const |
| bool | operator< (const TetEdge &tet_edge) const |
Private Attributes | |
| std::pair< unsigned, unsigned > | Vertex_pair |
| The vertices (sorted by vertex ids) More... | |
| bool | Reversed |
Helper class to keep track of edges in tet mesh generation.
////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
Constructor: Pass two vertices, identified by their indices Edge "direction" is from lower vertex to higher vertex id so can compare if we're dealing with the same one...
References OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, Reversed, and Vertex_pair.
|
inline |
|
inline |
Edge is reversed in the sense that vertex1 actually has a higher id than vertex2 (when specified in the constructor)
References Reversed.
Referenced by oomph::GmshTetScaffoldMesh::write_geo_file().
Comparison operator. Lexicographic comparison based on vertex ids
References first_vertex_id(), second_vertex_id(), and Vertex_pair.
Comparison operator: Edges are identical if their sorted (and therefore possibly reversed) vertex ids agree
References first_vertex_id(), second_vertex_id(), and Vertex_pair.
|
inline |
|
private |
Is it reversed? I.e. is the first input vertex stored after the second one?
Referenced by is_reversed(), and TetEdge().
The vertices (sorted by vertex ids)
Referenced by first_vertex_id(), operator<(), operator==(), second_vertex_id(), and TetEdge().