Wildmeshing Toolkit
Loading...
Searching...
No Matches
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
8namespace wmtk {
9class Mesh;
10}
12
15{
16public:
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
The Tuple is the basic navigation tool in our mesh data structure.
Definition Tuple.hpp:19
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