Wildmeshing Toolkit
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
wmtk::simplex::RawSimplexCollection Class Reference

Public Member Functions

const std::vector< Vertex > & vertices () const
 Return const reference to the RawSimplex vector.
 
const std::vector< Edge > & edges () const
 
const std::vector< Face > & faces () const
 
const std::vector< Tet > & tets () const
 
void reserve_vertices (size_t new_capacity)
 
void reserve_edges (size_t new_capacity)
 
void reserve_faces (size_t new_capacity)
 
void reserve_tets (size_t new_capacity)
 
void add (const Vertex &s)
 Add simplex to the collection.
 
void add (const Edge &s)
 
void add (const Face &s)
 
void add (const Tet &s)
 
void add_with_faces (const Edge &s)
 Add the simplex and its faces to the collection.
 
void add_with_faces (const Face &s)
 
void add_with_faces (const Tet &s)
 
void add (const RawSimplexCollection &simplex_collection)
 
void sort_and_clean ()
 Sort simplex vector and remove duplicates.
 
bool contains (const Vertex &simplex) const
 Check if simplex is contained in collection.
 
bool contains (const Edge &simplex) const
 
bool contains (const Face &simplex) const
 
bool contains (const Tet &simplex) const
 
std::vector< Facefaces_with_edge (const Edge &e) const
 
size_t size () const
 
bool operator== (const RawSimplexCollection &that) const
 
bool operator!= (const RawSimplexCollection &that) const
 

Static Public Member Functions

static RawSimplexCollection get_union (const RawSimplexCollection &collection_a, const RawSimplexCollection &collection_b)
 Get union of two simplex collections.
 
static RawSimplexCollection get_intersection (const RawSimplexCollection &collection_a, const RawSimplexCollection &collection_b)
 Get intersection of two simplex collections.
 
static bool are_simplex_collections_equal (const RawSimplexCollection &collection_a, const RawSimplexCollection &collection_b)
 Check if the two simplex collections are equal.
 
template<int N>
static RawSimplexCollection faces_from_simplex (const RawSimplex< N > &simplex)
 Get all faces of the simplex.
 

Private Attributes

std::vector< Vertexm_v
 
std::vector< Edgem_e
 
std::vector< Facem_f
 
std::vector< Tetm_t
 

Member Function Documentation

◆ add()

void wmtk::simplex::RawSimplexCollection::add ( const Vertex s)
inline

Add simplex to the collection.

There is no sorting or any check if the simplex already exists.

◆ add_with_faces()

void wmtk::simplex::RawSimplexCollection::add_with_faces ( const Edge s)
inline

Add the simplex and its faces to the collection.

There is no sorting or any check if the simplex already exists.

◆ are_simplex_collections_equal()

bool wmtk::simplex::RawSimplexCollection::are_simplex_collections_equal ( const RawSimplexCollection collection_a,
const RawSimplexCollection collection_b 
)
static

Check if the two simplex collections are equal.

The collections must be cleaned and sorted.

◆ contains()

bool wmtk::simplex::RawSimplexCollection::contains ( const Vertex simplex) const
inline

Check if simplex is contained in collection.

Collection musst be sorted! Peform sort_and_clean before calling this function.

◆ get_intersection()

RawSimplexCollection wmtk::simplex::RawSimplexCollection::get_intersection ( const RawSimplexCollection collection_a,
const RawSimplexCollection collection_b 
)
static

Get intersection of two simplex collections.

The collections must be sorted!

◆ get_union()

RawSimplexCollection wmtk::simplex::RawSimplexCollection::get_union ( const RawSimplexCollection collection_a,
const RawSimplexCollection collection_b 
)
static

Get union of two simplex collections.

The collections must be sorted!

◆ vertices()

const std::vector< Vertex > & wmtk::simplex::RawSimplexCollection::vertices ( ) const

Return const reference to the RawSimplex vector.

Return vector of all vertices.


The documentation for this class was generated from the following files: