15 , m_tdc_itrbl(mesh, simplex, true)
16 , m_it_end(m_tdc_itrbl.end())
20 : m_container(container)
21 , m_mesh(container.m_mesh)
22 , m_it(container.m_tdc_itrbl, t)
41 return step_depth_3();
67 default: assert(
false);
break;
78 return (m_t != other.
m_t) || (m_pt != other.
m_pt);
105 auto& visited_c = m_container.m_visited_cofaces;
106 auto& visited_l = m_container.m_visited_link;
116 m_t = navigate_to_link(*m_it);
122 for (; m_face_counter < 3; ++m_face_counter) {
123 for (; m_pt < 3; ++m_pt) {
124 if (!visited_c[m_pt - 1].is_visited(
152 for (; m_face_counter < 3; ++m_face_counter) {
153 for (; m_pt < 2; ++m_pt) {
154 if (!visited_l[m_pt].is_visited(
175 switch (m_face_counter) {
176 case 1: m_pt = 1;
return *
this;
207 if (m_it.is_intermediate() && m_face_counter == 2) {
213 switch (m_face_counter) {
214 case 1: m_pt = 1;
return *
this;
215 case 2: m_pt = 2;
return *
this;
220 case 4: m_pt = 1;
return *
this;
227 switch (m_face_counter) {
228 case 1: m_pt = 2;
return *
this;
237 case 4: m_pt = 1;
return *
this;
245 default: assert(
false);
break;
272 if (m_it.is_intermediate() && m_face_counter == 5) {
276 switch (m_face_counter) {
277 case 1: m_pt = 2;
return *
this;
282 case 3: m_pt = 1;
return *
this;
285 case 6: m_pt = 2;
return *
this;
287 case 8: m_pt = 3;
return *
this;
294 switch (m_face_counter) {
295 case 1: m_pt = 3;
return *
this;
300 case 3: m_pt = 1;
return *
this;
301 case 4: m_pt = 2;
return *
this;
306 case 6: m_pt = 2;
return *
this;
311 case 8: m_pt = 2;
return *
this;
358 for (int8_t j = s; j > -1; --j) {
359 for (int8_t i = 0; i < m - s; ++i) {
370 switch (m_container.m_simplex.primitive_type()) {
375 default: assert(
false);
382 if (m_face_counter == 2) {
395 if (m_face_counter == 3) {
411 switch (m_face_counter) {
412 case 0: m_pt = 0;
break;
413 case 1: m_pt = 1;
break;
418 case 3: m_pt = 1;
break;
423 case 5: m_pt = 1;
break;
424 case 6: m_pt = 2;
break;
429 case 8: m_pt = 1;
break;
430 case 9: m_pt = 2;
break;
435 case 11: m_pt = 2;
break;
440 case 13: m_pt = 2;
break;
441 default:
return false;
Tuple switch_tuples(const Tuple &tuple, const ContainerType &op_sequence) const
int64_t top_cell_dimension() const
virtual Tuple switch_tuple(const Tuple &tuple, PrimitiveType type) const =0
switch the orientation of the Tuple of the given dimension
simplex::IdSimplex get_id_simplex(const Tuple &tuple, PrimitiveType pt) const
Retrieve the IdSimplex that is represented by the tuple and primitive type.
PrimitiveType top_simplex_type() const
The Tuple is the basic navigation tool in our mesh data structure.
bool is_null() const
Checks if a tuple is "null". This merely implies the global index is -1.
Iterator & step_edge_mesh()
Iterator & step_depth_3()
Use breadth first search to find all d-simplices, and iterate through all cofaces in a d-simplex.
Tuple navigate_to_link(Tuple t)
bool operator!=(const Iterator &other) const
int64_t depth()
Compute the depth from the mesh and the simplex type.
Iterator(ClosedStarIterable &container, const Tuple &t=Tuple())
void init()
Depending on the depth, the iterator must be initialized differently.
bool step_faces_triangle()
Iterator & step_tri_mesh()
Iterator & step_tet_mesh()
bool step_faces_tetrahedron()
This iterator internally uses TopDimensionCofacesIterable.
ClosedStarIterable(const Mesh &mesh, const Simplex &simplex)
PrimitiveType primitive_type() const
constexpr wmtk::PrimitiveType PF
constexpr PrimitiveType get_primitive_type_from_id(int8_t id)
Get the primitive type corresponding to its unique integer id.
constexpr PrimitiveType PE
constexpr int8_t get_primitive_type_id(PrimitiveType t)
Get a unique integer id corresponding to each primitive type.
constexpr PrimitiveType PV