31 return {v0, v1, v2, v3};
44 const Mesh& m = simplex_collection.
mesh();
97 return {e0, e1, e2, e3, e4, e5};
111 const Mesh& m = simplex_collection.
mesh();
155 return {f0, f1, f2, f3};
170 const Mesh& m = simplex_collection.
mesh();
210 default: assert(
false);
226 default: assert(
false);
Tuple switch_tuples(const Tuple &tuple, const ContainerType &op_sequence) const
virtual Tuple switch_tuple(const Tuple &tuple, PrimitiveType type) const =0
switch the orientation of the Tuple of the given dimension
PrimitiveType top_simplex_type() const
const Mesh & mesh() const
void add(const Simplex &simplex)
Add simplex to the collection.
const Tuple & tuple() const
PrimitiveType primitive_type() const
constexpr wmtk::PrimitiveType PV
constexpr wmtk::PrimitiveType PT
constexpr wmtk::PrimitiveType PE
constexpr wmtk::PrimitiveType PF
std::vector< Tuple > vertices(const Mesh &m, const Simplex &simplex)
std::vector< Tuple > edges(const Mesh &m, const Simplex &simplex)
SimplexCollection faces_single_dimension(const Mesh &mesh, const Simplex &simplex, const PrimitiveType face_type)
Returns a vector with all faces in the boundary of a simplex of the given dimension.
std::vector< Tuple > faces_single_dimension_tuples(const Mesh &mesh, const Simplex &simplex, const PrimitiveType face_type)
SimplexCollection faces(const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean)
Returns all faces of a simplex.
constexpr PrimitiveType PV
constexpr PrimitiveType PE