Wildmeshing Toolkit
unique_homogeneous_simplices.cpp
Go to the documentation of this file.
4 namespace wmtk::simplex::utils {
5 
6 
7 std::vector<Tuple>
8 unique_homogeneous_simplices(const Mesh& m, PrimitiveType pt, const std::vector<Tuple>& tups)
9 {
10  std::vector<Tuple> vec = tups;
12  return vec;
13 }
14 void unique_homogeneous_simplices_inline(const Mesh& m, PrimitiveType pt, std::vector<Tuple>& tups)
15 {
18 
19  std::sort(tups.begin(), tups.end(), less);
20 
21  tups.erase(std::unique(tups.begin(), tups.end(), equal));
22 }
23 } // namespace wmtk::simplex::internal
std::vector< Tuple > unique_homogeneous_simplices(const Mesh &m, PrimitiveType pt, const std::vector< Tuple > &tups)
void unique_homogeneous_simplices_inline(const Mesh &m, PrimitiveType pt, std::vector< Tuple > &tups)