a Tuple refers to a global vid and a global tet id, and a local edge id and local face id
More...
#include <TetMesh.h>
|
|
size_t | m_global_vid = std::numeric_limits<size_t>::max() |
| |
|
size_t | m_local_eid = std::numeric_limits<size_t>::max() |
| |
|
size_t | m_local_fid = std::numeric_limits<size_t>::max() |
| |
|
size_t | m_global_tid = std::numeric_limits<size_t>::max() |
| |
|
int | m_hash = 0 |
| |
a Tuple refers to a global vid and a global tet id, and a local edge id and local face id
◆ Tuple()
| TetMesh::Tuple::Tuple |
( |
const TetMesh & |
m, |
|
|
size_t |
vid, |
|
|
size_t |
local_eid, |
|
|
size_t |
local_fid, |
|
|
size_t |
tid |
|
) |
| |
|
private |
Construct a new Tuple object with global vertex/tetra index and local edge/face index
- Parameters
-
| vid | vertex id (global) |
| eid | edge id (local) |
| fid | face id (local) |
| tid | tetra id (global) |
| ts | hash associated with tid |
◆ eid()
| size_t TetMesh::Tuple::eid |
( |
const TetMesh & |
m | ) |
const |
returns a global unique edge id
- Parameters
-
- Returns
- size_t
- Note
- The global id may not be consecutive. The edges are undirected and different tetra share the same edge.
◆ fid()
| size_t TetMesh::Tuple::fid |
( |
const TetMesh & |
m | ) |
const |
returns a global unique face id
- Parameters
-
- Returns
- size_t
- Note
- The global id may not be consecutive. The face are undirected.
◆ is_boundary_edge()
| bool TetMesh::Tuple::is_boundary_edge |
( |
const TetMesh & |
m | ) |
const |
Check if the current tuple the refers to an edge is on the boundary
- Parameters
-
- Returns
- if the edge is at the mesh boundary
◆ is_boundary_face()
| bool TetMesh::Tuple::is_boundary_face |
( |
const TetMesh & |
m | ) |
const |
Check if the current tuple the refers to a face is on the boundary
- Parameters
-
- Returns
- if the edge is at the mesh boundary
◆ is_valid()
| bool TetMesh::Tuple::is_valid |
( |
const TetMesh & |
m | ) |
const |
Check if the current tuple is already invalid (removed during editing).
- Parameters
-
- Returns
- if not removed and the tuple is up to date with respect to the connectivity. And the tet id can't be -1
◆ print_info()
| void TetMesh::Tuple::print_info |
( |
const TetMesh & |
m | ) |
const |
prints additional information
- Parameters
-
◆ switch_edge()
Switch operation.
- Parameters
-
| m | the mesh the Tuple is in |
- Returns
- another Tuple that share the same tetra, face, vertex, but different edge.
◆ switch_face()
Switch operation.
- Parameters
-
| m | the mesh the Tuple is in |
- Returns
- another Tuple that share the same tetra, edge, vertex, but different edge.
◆ switch_tetrahedron()
Switch operation for the adjacent tetra.
- Parameters
-
- Returns
- Tuple for the face-adjacent tetra, sharing same face, edge, and vertex.
-
nullopt if the Tuple is the switch goes off the boundary.
◆ switch_vertex()
Switch operation.
- Parameters
-
| m | the mesh the Tuple is in |
- Returns
- another Tuple that share the same tetra, face, edge, but different vertex.
◆ tid()
| size_t TetMesh::Tuple::tid |
( |
const TetMesh & |
m | ) |
const |
returns global tetra id.
- Parameters
-
- Returns
- size_t
◆ vid()
| size_t TetMesh::Tuple::vid |
( |
const TetMesh & |
m | ) |
const |
returns global vertex id.
- Parameters
-
- Returns
- size_t
The documentation for this class was generated from the following files:
- /home/runner/work/wildmeshing-toolkit/wildmeshing-toolkit/src/wmtk/TetMesh.h
- /home/runner/work/wildmeshing-toolkit/wildmeshing-toolkit/src/wmtk/TetMeshTuple.cpp