Wildmeshing Toolkit
cofaces_single_dimension.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include <wmtk/Primitive.hpp>
4 #include <wmtk/Tuple.hpp>
7 namespace wmtk::simplex {
8 
9 // Returns the cofaces of a provided simplex, but only providing the cofaces in the provided coface
10 // type
11 
23 SimplexCollection cofaces_single_dimension(
24  const Mesh& mesh,
25  const Simplex& my_simplex,
26  PrimitiveType cofaces_type,
27  bool sort_and_clean = true);
28 
29 std::vector<Tuple> cofaces_single_dimension_tuples(
30  const Mesh& mesh,
31  const Simplex& my_simplex,
32  PrimitiveType cofaces_type);
33 
34 std::vector<Simplex> cofaces_single_dimension_simplices(
35  const Mesh& mesh,
36  const Simplex& simplex,
37  PrimitiveType cofaces_type);
38 
39 SimplexCollection cofaces_single_dimension(
40  const TriMesh& mesh,
41  const Simplex& my_simplex,
42  PrimitiveType cofaces_type,
43  bool sort_and_clean = true);
44 
45 std::vector<Tuple> cofaces_single_dimension_tuples(
46  const TriMesh& mesh,
47  const Simplex& my_simplex,
48  PrimitiveType cofaces_type);
49 
50 std::vector<Simplex> cofaces_single_dimension_simplices(
51  const TriMesh& mesh,
52  const Simplex& simplex,
53  PrimitiveType cofaces_type);
54 
55 
56 } // namespace wmtk::simplex
SimplexCollection cofaces_single_dimension(const Mesh &mesh, const Simplex &my_simplex, PrimitiveType cofaces_type, bool sort_and_clean)
Returns all cofaces of a simplex that are of the provided primitive type.
std::vector< Simplex > cofaces_single_dimension_simplices(const Mesh &mesh, const Simplex &simplex, PrimitiveType cofaces_type)
std::vector< Tuple > cofaces_single_dimension_tuples(const Mesh &mesh, const Simplex &my_simplex, PrimitiveType cofaces_type)