Wildmeshing Toolkit
find_local_switch_sequence_to_face.cpp
Go to the documentation of this file.
1 #pragma once
2 #include <vector>
3 #include <wmtk/Primitive.hpp>
4 #include <wmtk/Tuple.hpp>
6 
7 namespace wmtk::multimesh::utils {
8 
9 
10 // finds a sequence to find an equivalent subtuple that utilizes the given face
11 std::vector<PrimitiveType> find_local_switch_sequence_to_face(
12  const Tuple& source,
13  const Tuple& target,
14  PrimitiveType subtuple_dimension,
15  PrimitiveType primitive_type)
16 {
18  source,
19  wmtk::utils::TupleInspector::local_id(target, primitive_type - 1),
20  subtuple_dimension,
21  primitive_type);
22 }
23 
24 namespace internal {
25 // interface for using this function with local boundary indices
26 std::vector<PrimitiveType> find_local_switch_sequence_to_face(
27  const Tuple& source,
28  int8_t local_boundary_index,
29  PrimitiveType subtuple_dimension,
30  PrimitiveType primitive_type)
31 {
32  //
33 }
34 } // namespace internal
35 } // namespace wmtk::multimesh::utils
static int8_t local_id(const Tuple &t, const PrimitiveType pt)
std::vector< PrimitiveType > find_local_switch_sequence_to_face(const Tuple &source, int8_t local_boundary_index, PrimitiveType subtuple_dimension, PrimitiveType primitive_type)
std::vector< PrimitiveType > find_local_switch_sequence_to_face(const Tuple &source, const Tuple &target, PrimitiveType subtuple_dimension, PrimitiveType primitive_type)