Wildmeshing Toolkit
same_simplex_dimension_surjection.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <array>
3 #include <vector>
4 #include <wmtk/Tuple.hpp>
5 
6 namespace wmtk {
7 class Mesh;
8 }
9 
10 namespace wmtk::multimesh {
11 
12 // Handles the "trivial " mapping case as we see in OBJ files
13 // parent and child are assumed to be homogeneous meshes of the same dimension.
14 // the mapping selects a subset of parent_simplices
15 // the tuple parent.tuple_from_id(pt,parent_simplices[index]) should be mapped to
16 // child.tuple_from_id(pt,index)
17 std::vector<std::array<Tuple, 2>> same_simplex_dimension_surjection(
18  const Mesh& parent,
19  const Mesh& child,
20  const std::vector<int64_t>& parent_simplices);
21 } // namespace wmtk::multimesh
std::vector< std::array< Tuple, 2 > > same_simplex_dimension_surjection(const Mesh &parent, const Mesh &child, const std::vector< int64_t > &parent_simplices)
Definition: Accessor.hpp:6