Public Member Functions | Private Attributes | List of all members
oomph::TetEdge Class Reference

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

Detailed Description

Helper class to keep track of edges in tet mesh generation.

Definition at line 272 of file gmsh_tet_mesh.template.h.

Constructor & Destructor Documentation

◆ TetEdge()

oomph::TetEdge::TetEdge ( const unsigned &  vertex1,
const unsigned &  vertex2 
)
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.

Member Function Documentation

◆ first_vertex_id()

unsigned oomph::TetEdge::first_vertex_id ( ) const
inline

First vertex id.

Definition at line 302 of file gmsh_tet_mesh.template.h.

Referenced by operator<(), and operator==().

◆ is_reversed()

bool oomph::TetEdge::is_reversed ( ) const
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().

◆ operator<()

bool oomph::TetEdge::operator< ( const TetEdge tet_edge) const
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().

◆ operator==()

bool oomph::TetEdge::operator== ( const TetEdge tet_edge) const
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().

◆ second_vertex_id()

unsigned oomph::TetEdge::second_vertex_id ( ) const
inline

Second vertex id.

Definition at line 308 of file gmsh_tet_mesh.template.h.

Referenced by operator<(), and operator==().

Member Data Documentation

◆ Reversed

bool oomph::TetEdge::Reversed
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.

◆ Vertex_pair

std::pair<unsigned,unsigned> oomph::TetEdge::Vertex_pair
private

The vertices (sorted by vertex ids)

Definition at line 355 of file gmsh_tet_mesh.template.h.


The documentation for this class was generated from the following file: