Wildmeshing Toolkit
neighbors_single_dimension.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include <wmtk/PrimitiveType.hpp>
4 #include <wmtk/Tuple.hpp>
5 
6 namespace wmtk {
7 class Mesh;
8 }
9 namespace wmtk::simplex {
10 class Simplex;
11 
12 // computes every simplex of the target type that is a face or coface of the input simplex
13 std::vector<Simplex> neighbors_single_dimension(
14  const Mesh& m,
15  const Simplex& input_simplex,
16  const PrimitiveType target_primitive_type);
17 std::vector<Tuple> neighbors_single_dimension_tuples(
18  const Mesh& m,
19  const Simplex& input_simplex,
20  const PrimitiveType target_primitive_type);
21 } // namespace wmtk::simplex
std::vector< Tuple > neighbors_single_dimension_tuples(const Mesh &m, const Simplex &s, const PrimitiveType tpt)
std::vector< Simplex > neighbors_single_dimension(const Mesh &m, const Simplex &s, const PrimitiveType pt)
Definition: Accessor.hpp:6