18 const size_t n_top_dimension_cofaces = collection.
simplex_vector().size();
30 for (
size_t i = 0; i < n_top_dimension_cofaces; ++i) {
35 collection.
add(simplex);
virtual bool is_valid(const Tuple &tuple) const
check validity of tuple including its hash
PrimitiveType top_simplex_type() const
void reserve(const size_t new_cap)
void add(const Simplex &simplex)
Add simplex to the collection.
const std::vector< Simplex > & simplex_vector() const
Return const reference to the simplex vector.
void sort_and_clean()
Sort simplex vector and remove duplicates.
const Tuple & tuple() const
SimplexCollection closed_star(const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean)
The closed star contains the input simplex, all its top dimension cofaces, and their faces.
void top_dimension_cofaces(const Simplex &simplex, SimplexCollection &simplex_collection, const bool sort_and_clean)
Get all top dimension cofaces of the given simplex.
SimplexCollection faces(const Mesh &mesh, const Simplex &simplex, const bool sort_and_clean)
Returns all faces of a simplex.
void log_and_throw_error(const std::string &msg)