|
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. | |
| void | init () |
| Depending on the depth, the iterator must be initialized differently. | |
| Iterator & | step_depth_3 () |
| Use breadth first search to find all d-simplices, and iterate through all cofaces in a d-simplex. | |
| 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 19 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, wmtk::simplex::ClosedStarIterable::OpenStar, 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 91 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 100 of file ClosedStarIterable.cpp.
Referenced by Iterator().
Definition at line 334 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 76 of file ClosedStarIterable.cpp.
| IdSimplex wmtk::simplex::ClosedStarIterable::Iterator::operator* | ( | ) |
Definition at line 81 of file ClosedStarIterable.cpp.
References wmtk::get_primitive_type_from_id().
| const IdSimplex wmtk::simplex::ClosedStarIterable::Iterator::operator* | ( | ) | const |
Definition at line 86 of file ClosedStarIterable.cpp.
References wmtk::get_primitive_type_from_id().
| ClosedStarIterable::Iterator & wmtk::simplex::ClosedStarIterable::Iterator::operator++ | ( | ) |
Definition at line 38 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::simplex::ClosedStarIterable::Faces, wmtk::get_primitive_type_id(), wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::simplex::ClosedStarIterable::OpenStar, 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 102 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::Mesh::get_id_simplex(), wmtk::get_primitive_type_from_id(), wmtk::simplex::ClosedStarIterable::Link, wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::simplex::ClosedStarIterable::OpenStar, 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 171 of file ClosedStarIterable.cpp.
References wmtk::simplex::ClosedStarIterable::m_mesh, wmtk::Mesh::switch_tuple(), and wmtk::Vertex.
|
private |
Definition at line 368 of file ClosedStarIterable.cpp.
References wmtk::Edge, wmtk::Tetrahedron, wmtk::Triangle, and wmtk::Vertex.
|
private |
Definition at line 380 of file ClosedStarIterable.cpp.
References wmtk::Vertex.
|
private |
Definition at line 405 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 391 of file ClosedStarIterable.cpp.
References wmtk::Edge, and wmtk::Vertex.
|
private |
Definition at line 260 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 196 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!=().