98 void reserve(
const size_t new_cap);
void sort_and_clean()
Sort simplex vector and remove duplicates.
static IdSimplexCollection get_intersection(const IdSimplexCollection &collection_a, const IdSimplexCollection &collection_b)
Get intersection of two simplex collections.
void add(const IdSimplex &simplex)
Add simplex to the collection.
bool operator==(const IdSimplexCollection &other) const
static IdSimplexCollection get_union(const IdSimplexCollection &collection_a, const IdSimplexCollection &collection_b)
Get union of two simplex collections.
std::vector< IdSimplex > m_simplices
std::vector< Tuple > simplex_vector_tuples(PrimitiveType ptype) const
Return vector of all simplices of the requested type, as tuples.
const Mesh & mesh() const
void reserve(const size_t new_cap)
const std::vector< IdSimplex > & simplex_vector() const
Return const reference to the simplex vector.
bool contains(const IdSimplex &simplex) const
Check if simplex is contained in collection.
IdSimplexCollection(const Mesh &mesh, std::vector< IdSimplex > &&simplices={})
static bool are_simplex_collections_equal(const IdSimplexCollection &collection_a, const IdSimplexCollection &collection_b)
Check if the two simplex collections are equal.