Wildmeshing Toolkit
|
#include <OpenStarIterable.hpp>
Public Member Functions | |
Iterator (OpenStarIterable &container, const Tuple &t=Tuple()) | |
Iterator & | operator++ () |
bool | operator!= (const Iterator &other) const |
IdSimplex | operator* () |
const IdSimplex | operator* () const |
Private Member Functions | |
int64_t | depth () |
Compute the depth from the mesh and the simplex type. More... | |
void | init () |
Depending on the depth, the iterator must be initialized differently. More... | |
Iterator & | step_depth_3 () |
Use breadth first search to find all d-simplices, and iterate through all cofaces in a d-simplex. More... | |
Private Attributes | |
OpenStarIterable & | m_container |
TopDimensionCofacesIterable::Iterator | m_it |
Tuple | m_t |
int8_t | m_pt = -1 |
int8_t | m_edge_counter = 0 |
Definition at line 19 of file OpenStarIterable.hpp.
wmtk::simplex::OpenStarIterable::Iterator::Iterator | ( | OpenStarIterable & | container, |
const Tuple & | t = Tuple() |
||
) |
Definition at line 20 of file OpenStarIterable.cpp.
References init(), wmtk::Tuple::is_null(), and m_t.
|
private |
Compute the depth from the mesh and the simplex type.
The depth is "mesh top simplex dimension" - "simplex dimension".
Definition at line 76 of file OpenStarIterable.cpp.
References wmtk::get_primitive_type_id(), wmtk::simplex::Simplex::primitive_type(), and wmtk::Mesh::top_cell_dimension().
|
private |
Depending on the depth, the iterator must be initialized differently.
Definition at line 86 of file OpenStarIterable.cpp.
Referenced by Iterator().
bool wmtk::simplex::OpenStarIterable::Iterator::operator!= | ( | const Iterator & | other | ) | const |
Definition at line 61 of file OpenStarIterable.cpp.
IdSimplex wmtk::simplex::OpenStarIterable::Iterator::operator* | ( | ) |
Definition at line 66 of file OpenStarIterable.cpp.
References wmtk::get_primitive_type_from_id().
const IdSimplex wmtk::simplex::OpenStarIterable::Iterator::operator* | ( | ) | const |
Definition at line 71 of file OpenStarIterable.cpp.
References wmtk::get_primitive_type_from_id().
OpenStarIterable::Iterator & wmtk::simplex::OpenStarIterable::Iterator::operator++ | ( | ) |
Definition at line 33 of file OpenStarIterable.cpp.
References wmtk::get_primitive_type_id(), wmtk::simplex::Simplex::primitive_type(), and wmtk::Mesh::top_cell_dimension().
|
private |
Use breadth first search to find all d-simplices, and iterate through all cofaces in a d-simplex.
Definition at line 88 of file OpenStarIterable.cpp.
References wmtk::Edge, wmtk::Mesh::get_id_simplex(), wmtk::get_primitive_type_from_id(), wmtk::simplex::Simplex::primitive_type(), wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 48 of file OpenStarIterable.hpp.
|
private |
Definition at line 52 of file OpenStarIterable.hpp.
|
private |
Definition at line 49 of file OpenStarIterable.hpp.
|
private |
Definition at line 51 of file OpenStarIterable.hpp.
Referenced by operator!=().
|
private |
Definition at line 50 of file OpenStarIterable.hpp.
Referenced by Iterator(), and operator!=().