Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
wmtk::TetMesh::TetrahedronConnectivity Class Reference

#include <TetMesh.h>

Public Member Functions

size_t & operator[] (size_t index)
 
size_t operator[] (size_t index) const
 
int find (size_t v_id) const
 
int find_local_edge (size_t v1_id, size_t v2_id) const
 
int find_local_face (size_t v1_id, size_t v2_id, size_t v3_id) const
 
void print_info ()
 

Public Attributes

std::array< size_t, 4 > m_indices
 
bool m_is_removed = false
 
size_t hash = 0
 

Friends

bool operator== (const TetrahedronConnectivity &l, const TetrahedronConnectivity &r)
 

Detailed Description

(internal use) Maintains the vertices of a given tetra.

Member Data Documentation

◆ hash

size_t wmtk::TetMesh::TetrahedronConnectivity::hash = 0

Bumped whenever an operation changes this tet, so a Tuple minted earlier can detect that it is stale. Only ever compared for equality against a Tuple's cached copy – no code reads the value itself, and the rollback path decrements it, which is why it is unsigned: the wrap at 0 is defined, where signed underflow would not be.


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