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) | |
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... More... | |
unsigned | first_vertex_id () const |
First vertex id. More... | |
unsigned | second_vertex_id () const |
Second vertex id. More... | |
bool | is_reversed () const |
Edge is reversed in the sense that vertex1 actually has a higher id than vertex2 (when specified in the constructor) More... | |
bool | operator== (const TetEdge &tet_edge) const |
Comparison operator: Edges are identical if their sorted (and therefore possibly reversed) vertex ids agree. More... | |
bool | operator< (const TetEdge &tet_edge) const |
Comparison operator. Lexicographic comparison based on vertex ids. More... | |
Private Attributes | |
std::pair< unsigned, unsigned > | Vertex_pair |
The vertices (sorted by vertex ids) More... | |
bool | Reversed |
Is it reversed? I.e. is the first input vertex stored after the second one? More... | |
Helper class to keep track of edges in tet mesh generation.
Definition at line 272 of file gmsh_tet_mesh.template.h.
|
inline |
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...
Definition at line 279 of file gmsh_tet_mesh.template.h.
|
inline |
First vertex id.
Definition at line 302 of file gmsh_tet_mesh.template.h.
Referenced by operator<(), and operator==().
|
inline |
Edge is reversed in the sense that vertex1 actually has a higher id than vertex2 (when specified in the constructor)
Definition at line 316 of file gmsh_tet_mesh.template.h.
Referenced by oomph::GmshTetScaffoldMesh::write_geo_file().
|
inline |
Comparison operator. Lexicographic comparison based on vertex ids.
Definition at line 331 of file gmsh_tet_mesh.template.h.
References first_vertex_id(), and second_vertex_id().
|
inline |
Comparison operator: Edges are identical if their sorted (and therefore possibly reversed) vertex ids agree.
Definition at line 323 of file gmsh_tet_mesh.template.h.
References first_vertex_id(), and second_vertex_id().
|
inline |
Second vertex id.
Definition at line 308 of file gmsh_tet_mesh.template.h.
Referenced by operator<(), and operator==().
|
private |
Is it reversed? I.e. is the first input vertex stored after the second one?
Definition at line 359 of file gmsh_tet_mesh.template.h.
|
private |
The vertices (sorted by vertex ids)
Definition at line 355 of file gmsh_tet_mesh.template.h.