Wildmeshing Toolkit
|
#include <ClosedStarIterable.hpp>
Public Member Functions | |
Iterator (ClosedStarIterable &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... | |
Iterator & | step_edge_mesh () |
Iterator & | step_tri_mesh () |
Iterator & | step_tet_mesh () |
Tuple | navigate_to_link (Tuple t) |
bool | step_faces () |
bool | step_faces_edge () |
bool | step_faces_triangle () |
bool | step_faces_tetrahedron () |
Private Attributes | |
ClosedStarIterable & | m_container |
const Mesh & | m_mesh |
TopDimensionCofacesIterable::Iterator | m_it |
Tuple | m_t |
int8_t | m_pt = -1 |
int8_t | m_face_counter = 0 |
IteratorPhase | m_phase = IteratorPhase::Faces |
Definition at line 21 of file ClosedStarIterable.hpp.
wmtk::simplex::ClosedStarIterable::Iterator::Iterator | ( | ClosedStarIterable & | container, |
const Tuple & | t = Tuple() |
||
) |
Definition at line 20 of file ClosedStarIterable.cpp.
References depth(), wmtk::get_primitive_type_id(), init(), wmtk::Tuple::is_null(), m_phase, m_pt, wmtk::simplex::ClosedStarIterable::m_simplex, m_t, and wmtk::simplex::Simplex::primitive_type().
|
private |
Compute the depth from the mesh and the simplex type.
The depth is "mesh top simplex dimension" - "simplex dimension".
Definition at line 92 of file ClosedStarIterable.cpp.
References wmtk::get_primitive_type_id(), wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::simplex::Simplex::primitive_type(), and wmtk::Mesh::top_cell_dimension().
Referenced by Iterator().
|
private |
Depending on the depth, the iterator must be initialized differently.
Definition at line 101 of file ClosedStarIterable.cpp.
Referenced by Iterator().
Definition at line 335 of file ClosedStarIterable.cpp.
References wmtk::get_primitive_type_from_id(), wmtk::get_primitive_type_id(), wmtk::Tuple::is_null(), wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::simplex::Simplex::primitive_type(), wmtk::Mesh::switch_tuple(), and wmtk::Mesh::top_cell_dimension().
bool wmtk::simplex::ClosedStarIterable::Iterator::operator!= | ( | const Iterator & | other | ) | const |
Definition at line 77 of file ClosedStarIterable.cpp.
IdSimplex wmtk::simplex::ClosedStarIterable::Iterator::operator* | ( | ) |
Definition at line 82 of file ClosedStarIterable.cpp.
References wmtk::get_primitive_type_from_id().
const IdSimplex wmtk::simplex::ClosedStarIterable::Iterator::operator* | ( | ) | const |
Definition at line 87 of file ClosedStarIterable.cpp.
References wmtk::get_primitive_type_from_id().
ClosedStarIterable::Iterator & wmtk::simplex::ClosedStarIterable::Iterator::operator++ | ( | ) |
Definition at line 39 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::get_primitive_type_id(), wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::Tetrahedron, wmtk::Mesh::top_cell_dimension(), wmtk::Mesh::top_simplex_type(), wmtk::Triangle, and wmtk::Vertex.
|
private |
Use breadth first search to find all d-simplices, and iterate through all cofaces in a d-simplex.
Definition at line 103 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::Mesh::get_id_simplex(), wmtk::get_primitive_type_from_id(), wmtk::simplex::ClosedStarIterable::m_mesh, 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 172 of file ClosedStarIterable.cpp.
References wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::Mesh::switch_tuple(), and wmtk::Vertex.
|
private |
Definition at line 369 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 381 of file ClosedStarIterable.cpp.
References wmtk::Vertex.
|
private |
Definition at line 406 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::PE, PF, wmtk::PV, wmtk::Mesh::switch_tuples(), wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 392 of file ClosedStarIterable.cpp.
References wmtk::Edge, and wmtk::Vertex.
|
private |
Definition at line 261 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::PE, PF, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 197 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::PE, wmtk::simplex::Simplex::primitive_type(), wmtk::PV, wmtk::Mesh::switch_tuple(), wmtk::Mesh::switch_tuples(), wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 61 of file ClosedStarIterable.hpp.
|
private |
Definition at line 67 of file ClosedStarIterable.hpp.
|
private |
Definition at line 64 of file ClosedStarIterable.hpp.
|
private |
Definition at line 62 of file ClosedStarIterable.hpp.
|
private |
Definition at line 68 of file ClosedStarIterable.hpp.
Referenced by Iterator().
|
private |
Definition at line 66 of file ClosedStarIterable.hpp.
Referenced by Iterator(), and operator!=().
|
private |
Definition at line 65 of file ClosedStarIterable.hpp.
Referenced by Iterator(), and operator!=().