Wildmeshing Toolkit
SplitAlternateFacetData.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 
15 {
16 public:
18  using AltData = std::vector<Data>;
20 
21 
22  const Data& add_facet(
23  const wmtk::Mesh& mesh,
24  const wmtk::Tuple& edge_tuple,
25  const std::array<int64_t, 2>& new_facet_indices);
26  const Data& add_facet(wmtk::Mesh& mesh, const wmtk::Tuple& edge_tuple);
27 
28  void sort();
29 
30  // assumes the split facet map has been sorted
31  const std::array<int64_t, 2>& get_alternative_facets(const int64_t& input_facet) const;
32 
33  AltData::const_iterator get_alternative_facets_it(const int64_t& input_facet) const;
34 
36  const PrimitiveType mesh_pt,
37  const Tuple& t,
38  const PrimitiveType simplex_dimension) const;
39 };
40 
41 } // namespace wmtk::operations::internal
Tuple get_alternative(const PrimitiveType mesh_pt, const Tuple &t, const PrimitiveType simplex_dimension) const
const Data & add_facet(const wmtk::Mesh &mesh, const wmtk::Tuple &edge_tuple, const std::array< int64_t, 2 > &new_facet_indices)
const std::array< int64_t, 2 > & get_alternative_facets(const int64_t &input_facet) const
AltData::const_iterator get_alternative_facets_it(const int64_t &input_facet) const
Definition: Accessor.hpp:6