////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// 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 265 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 271 of file gmsh_tet_mesh.template.h.
References Reversed, and Vertex_pair.
|
inline |
First vertex id.
Definition at line 294 of file gmsh_tet_mesh.template.h.
References Vertex_pair.
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 308 of file gmsh_tet_mesh.template.h.
References Reversed.
Referenced by oomph::GmshTetScaffoldMesh::write_geo_file().
|
inline |
Comparison operator. Lexicographic comparison based on vertex ids.
Definition at line 323 of file gmsh_tet_mesh.template.h.
References first_vertex_id(), second_vertex_id(), and Vertex_pair.
|
inline |
Comparison operator: Edges are identical if their sorted (and therefore possibly reversed) vertex ids agree.
Definition at line 315 of file gmsh_tet_mesh.template.h.
References first_vertex_id(), second_vertex_id(), and Vertex_pair.
|
inline |
Second vertex id.
Definition at line 300 of file gmsh_tet_mesh.template.h.
References Vertex_pair.
Referenced by operator<(), and operator==().
|
private |
Is it reversed? I.e. is the first input vertex stored after the second one?
Definition at line 350 of file gmsh_tet_mesh.template.h.
Referenced by is_reversed(), and TetEdge().
|
private |
The vertices (sorted by vertex ids)
Definition at line 346 of file gmsh_tet_mesh.template.h.
Referenced by first_vertex_id(), operator<(), operator==(), second_vertex_id(), and TetEdge().