Wildmeshing Toolkit
wmtk::autogen::edge_mesh Namespace Reference

Namespaces

 internal
 

Classes

class  SimplexDart
 

Functions

Tuple get_tuple_from_simplex_local_vertex_id (int8_t local_id, int64_t global_id)
 
Tuple get_tuple_from_simplex_local_id (PrimitiveType pt, int8_t local_id, int64_t global_fid)
 
bool is_ccw (const Tuple &t)
 
bool tuple_is_valid_for_ccw (const Tuple &t)
 
int64_t local_id_table_offset (const Tuple &t)
 
std::array< int64_t, 1 > lvid_from_table_offset (int64_t table_offset)
 
Tuple local_switch_tuple (const Tuple &t, PrimitiveType pt)
 
Tuple local_switch_tuple (const Tuple &t, int8_t index)
 
int8_t simplex_index_from_valid_index (int8_t valid_index, wmtk::PrimitiveType type)
 
int8_t subdart_maximal_action_to_face_action (int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
 
int8_t subdart_maximal_action_to_face_size (int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
 
std::array< int8_t, 2 > subdart_maximal_action_to_face (int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
 Returns a dart action that maximizes the number of sub-darts preserved. More...
 
Tuple tuple_from_valid_index (int64_t global_cid, int8_t valid_tuple_index)
 
int8_t valid_index_from_tuple (const Tuple &t)
 

Variables

const int8_t auto_valid_tuples [2][1] = {{0}, {1}}
 
const int8_t auto_valid_tuple_indices [2] = {0, 1}
 
const int8_t auto_all_to_valid_tuple_indices [2] = {0, 1}
 
const int8_t auto_valid_switch_table [2][1] = {{1}, {0}}
 
const int8_t auto_valid_switch_product_table [2][2] = {{0, 1}, {1, 0}}
 
const int8_t auto_valid_switch_inverse_table [2] = {0, 1}
 
const int8_t auto_valid_tuple_switch_indices [3] = {1, 0, 1}
 

Function Documentation

◆ get_tuple_from_simplex_local_id()

Tuple wmtk::autogen::edge_mesh::get_tuple_from_simplex_local_id ( PrimitiveType  pt,
int8_t  local_id,
int64_t  global_fid 
)
inline

Definition at line 18 of file get_tuple_from_simplex_local_id.hpp.

References wmtk::Edge, get_tuple_from_simplex_local_vertex_id(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.

Here is the call graph for this function:

◆ get_tuple_from_simplex_local_vertex_id()

Tuple wmtk::autogen::edge_mesh::get_tuple_from_simplex_local_vertex_id ( int8_t  local_id,
int64_t  global_id 
)
inline

Definition at line 11 of file get_tuple_from_simplex_local_id.hpp.

Referenced by get_tuple_from_simplex_local_id().

Here is the caller graph for this function:

◆ is_ccw()

bool wmtk::autogen::edge_mesh::is_ccw ( const Tuple t)
inline

Definition at line 8 of file is_ccw.hxx.

References tuple_is_valid_for_ccw().

Referenced by wmtk::operations::AMIPSOptimizationSmoothing::execute(), wmtk::operations::AMIPSOptimizationSmoothingPeriodic::execute(), and wmtk::autogen::is_ccw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ local_id_table_offset()

int64_t wmtk::autogen::edge_mesh::local_id_table_offset ( const Tuple t)
inline

Definition at line 7 of file local_id_table_offset.hxx.

References wmtk::utils::TupleInspector::local_vid().

Referenced by wmtk::autogen::utils::local_id_table_offset(), and valid_index_from_tuple().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ local_switch_tuple() [1/2]

Tuple wmtk::autogen::edge_mesh::local_switch_tuple ( const Tuple t,
int8_t  index 
)
inline

Definition at line 31 of file local_switch_tuple.hxx.

References auto_valid_switch_product_table, wmtk::utils::TupleInspector::global_cid(), tuple_from_valid_index(), and valid_index_from_tuple().

Here is the call graph for this function:

◆ local_switch_tuple() [2/2]

Tuple wmtk::autogen::edge_mesh::local_switch_tuple ( const Tuple t,
PrimitiveType  pt 
)
inline

Definition at line 11 of file local_switch_tuple.hxx.

References wmtk::Edge, wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.

Referenced by wmtk::multimesh::utils::local_switch_tuple(), and wmtk::autogen::local_switch_tuple().

Here is the caller graph for this function:

◆ lvid_from_table_offset()

std::array< int64_t, 1 > wmtk::autogen::edge_mesh::lvid_from_table_offset ( int64_t  table_offset)
inline

Definition at line 12 of file local_id_table_offset.hxx.

◆ simplex_index_from_valid_index()

int8_t wmtk::autogen::edge_mesh::simplex_index_from_valid_index ( int8_t  valid_index,
wmtk::PrimitiveType  type 
)
inline

Definition at line 7 of file simplex_index_from_valid_index.hxx.

References auto_valid_tuples, and wmtk::get_primitive_type_id().

Referenced by wmtk::autogen::utils::simplex_index_from_valid_index(), wmtk::autogen::simplex_index_from_valid_index(), and wmtk::autogen::utils::valid_index_to_simplex_index().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subdart_maximal_action_to_face()

std::array< int8_t, 2 > wmtk::autogen::edge_mesh::subdart_maximal_action_to_face ( int8_t  dart_index,
int8_t  simplex_dimension,
int8_t  simplex_index 
)

Returns a dart action that maximizes the number of sub-darts preserved.

Definition at line 33 of file subdart_maximal_action_to_face.cpp.

References wmtk::autogen::edge_mesh::SimplexDart::identity().

Referenced by wmtk::autogen::utils::subdart_maximal_action_to_face().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subdart_maximal_action_to_face_action()

int8_t wmtk::autogen::edge_mesh::subdart_maximal_action_to_face_action ( int8_t  dart_index,
int8_t  simplex_dimension,
int8_t  simplex_index 
)

Definition at line 7 of file subdart_maximal_action_to_face.cpp.

References wmtk::autogen::edge_mesh::SimplexDart::identity().

Referenced by wmtk::autogen::utils::subdart_maximal_action_to_face_action().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subdart_maximal_action_to_face_size()

int8_t wmtk::autogen::edge_mesh::subdart_maximal_action_to_face_size ( int8_t  dart_index,
int8_t  simplex_dimension,
int8_t  simplex_index 
)

Definition at line 20 of file subdart_maximal_action_to_face.cpp.

Referenced by wmtk::autogen::utils::largest_shared_subdart_size(), and wmtk::autogen::utils::subdart_maximal_action_to_face_size().

Here is the caller graph for this function:

◆ tuple_from_valid_index()

Tuple wmtk::autogen::edge_mesh::tuple_from_valid_index ( int64_t  global_cid,
int8_t  valid_tuple_index 
)
inline

Definition at line 7 of file tuple_from_valid_index.hxx.

References auto_valid_tuples.

Referenced by local_switch_tuple(), and wmtk::autogen::tuple_from_valid_index().

Here is the caller graph for this function:

◆ tuple_is_valid_for_ccw()

bool wmtk::autogen::edge_mesh::tuple_is_valid_for_ccw ( const Tuple t)
inline

Definition at line 14 of file is_ccw.hxx.

References wmtk::Tuple::is_null().

Referenced by is_ccw(), and wmtk::autogen::tuple_is_valid_for_ccw().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ valid_index_from_tuple()

int8_t wmtk::autogen::edge_mesh::valid_index_from_tuple ( const Tuple t)
inline

Definition at line 7 of file valid_index_from_tuple.hxx.

References auto_all_to_valid_tuple_indices, and local_id_table_offset().

Referenced by local_switch_tuple(), and wmtk::autogen::valid_index_from_tuple().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ auto_all_to_valid_tuple_indices

const int8_t wmtk::autogen::edge_mesh::auto_all_to_valid_tuple_indices = {0, 1}

Definition at line 10 of file autogenerated_tables.cpp.

Referenced by valid_index_from_tuple().

◆ auto_valid_switch_inverse_table

const int8_t wmtk::autogen::edge_mesh::auto_valid_switch_inverse_table = {0, 1}

◆ auto_valid_switch_product_table

const int8_t wmtk::autogen::edge_mesh::auto_valid_switch_product_table = {{0, 1}, {1, 0}}

◆ auto_valid_switch_table

const int8_t wmtk::autogen::edge_mesh::auto_valid_switch_table = {{1}, {0}}

Definition at line 12 of file autogenerated_tables.cpp.

◆ auto_valid_tuple_indices

const int8_t wmtk::autogen::edge_mesh::auto_valid_tuple_indices = {0, 1}

◆ auto_valid_tuple_switch_indices

◆ auto_valid_tuples

const int8_t wmtk::autogen::edge_mesh::auto_valid_tuples = {{0}, {1}}