Wildmeshing Toolkit
CollapseAlternateFacetData.hpp
Go to the documentation of this file.
1 
2 #pragma once
3 #include <array>
4 #include <vector>
5 #include <wmtk/Tuple.hpp>
7 
8 namespace wmtk {
9 class Mesh;
10 }
12 
13 
15 {
16 public:
20 
21  void add(const Mesh& m, const Tuple& input_tuple);
22 
23  std::array<Tuple, 2> get_alternatives(
24  const PrimitiveType mesh_pt,
25  const Tuple& t,
26  const PrimitiveType simplex_dimension) const;
28  const PrimitiveType mesh_pt,
29  const Tuple& t,
30  const PrimitiveType simplex_dimension) const;
31 
32  using AltData = std::vector<Data>;
34 
35  void sort();
36 
37  const Data& get_alternatives_data(const Tuple& t) const;
38 
39  AltData::const_iterator get_alternative_data_it(const int64_t& input_facet) const;
40 };
41 } // namespace wmtk::operations::internal
AltData::const_iterator get_alternative_data_it(const int64_t &input_facet) const
std::array< Tuple, 2 > get_alternatives(const PrimitiveType mesh_pt, const Tuple &t, const PrimitiveType simplex_dimension) const
Tuple get_alternative(const PrimitiveType mesh_pt, const Tuple &t, const PrimitiveType simplex_dimension) const
Definition: Accessor.hpp:6