Wildmeshing Toolkit
Loading...
Searching...
No Matches
subdart_maximal_action_to_face.cpp
Go to the documentation of this file.
1// DO NOT MODIFY, autogenerated from the /scripts directory
3#include "SimplexDart.hpp"
8 int8_t dart_index,
9 int8_t simplex_dimension,
10 int8_t simplex_index)
11{
12 switch (simplex_dimension) {
13 case 1: return subdart_preserving_action_1[dart_index][simplex_index];
14
15 case 2: return SimplexDart::identity();
16 default: break;
17 }
18 assert(false);
19 return 0;
20}
21
23 int8_t dart_index,
24 int8_t simplex_dimension,
25 int8_t simplex_index)
26{
27 switch (simplex_dimension) {
28 case 1: return max_subdart_preservation_dimension_1[dart_index][simplex_index];
29
30 case 2: return 2;
31 default: break;
32 }
33 return 0;
34}
35
36std::array<int8_t, 2>
37subdart_maximal_action_to_face(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
38{
39 switch (simplex_dimension) {
40 case 1:
41 return std::array<int8_t, 2>{
42 {subdart_preserving_action_1[dart_index][simplex_index],
43 max_subdart_preservation_dimension_1[dart_index][simplex_index]}};
44
45 case 2: return std::array<int8_t, 2>{{SimplexDart::identity(), 2}};
46
47 default: break;
48 }
49 assert(false);
50 return {};
51}
52} // namespace wmtk::autogen::tri_mesh
const int8_t subdart_preserving_action_1[6][3]
std::array< int8_t, 2 > subdart_maximal_action_to_face(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
Returns a dart action that maximizes the number of sub-darts preserved.
int8_t subdart_maximal_action_to_face_size(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)
const int8_t max_subdart_preservation_dimension_1[6][3]
int8_t subdart_maximal_action_to_face_action(int8_t dart_index, int8_t simplex_dimension, int8_t simplex_index)