116 const bool retrieve_intermediate_tuple =
false);
const Tuple & tuple() const
Iterator & step_depth_1()
There are at max two d-simplices.
PrimitiveType pt(int64_t depth) const
Get the d - depth primitive type.
Iterator & step_depth_0()
Just return the simplex and stop.
TopDimensionCofacesIterable & m_container
void add_neighbors_to_queue()
bool is_intermediate() const
int64_t depth()
Compute the depth from the mesh and the simplex type.
Iterator(TopDimensionCofacesIterable &container, const Tuple &t=Tuple())
bool operator!=(const Iterator &other) const
void init(int64_t depth)
Depending on the depth, the iterator must be initialized differently.
Iterator & step_depth_2()
Iterate around simplex to find all d-simplices.
Iterator & step_depth_3()
Use breadth first search to find all d-simplices.
Iterating through the d-simplices of a mesh can be done in different ways, depending on the simplex d...
IteratorPhase
The IteratorPhase is only used for depth 1 and 2.
TopDimensionCofacesIterable(const Mesh &mesh, const Simplex &simplex, const bool retrieve_intermediate_tuple=false)
wmtk::utils::DynamicArray< Tuple > m_q
bool m_retrieve_intermediate_tuple
simplex::internal::VisitedArray< int64_t > m_visited