6#include <kernel/geometry/test_aux/index_calculator_meshes.hpp>
7#include <kernel/geometry/test_aux/copy_comp_set.hpp>
15 void validate_hypercube_edge_index_set(
const HEdgeIndexTree& tree)
18 static const Index v_e[] =
81 Index vector_size = 19;
82 int num_indices = tree.get_num_indices();
84 for(
Index i(0); i < vector_size; ++i)
86 Index current_set_size = tree.get_set_size(i);
87 for(
Index j(0); j < current_set_size; ++j)
89 for(
int k(0); k < num_indices; ++k)
91 current_value = tree.get_index(i, j, k);
94 if(current_value != v_e[count])
95 throw String(
"IndexTree hypercube-edge-mesh parsing failure");
102 throw String(
"IndexTree hypercube-edge-mesh parsing failure");
108 void validate_hypercube_quad_index_set(
const QuadIndexTree& tree)
112 static const Index v_q[] =
159 Index vector_size = 19;
160 int num_indices = tree.get_num_indices();
162 for(
Index i(0); i < vector_size; ++i)
164 Index current_set_size = tree.get_set_size(i);
165 for(
Index j(0); j < current_set_size; ++j)
167 for(
int k(0); k < num_indices; ++k)
169 current_value = tree.get_index(i, j, k);
172 if(current_value != v_q[count])
173 throw String(
"IndexTree hypercube-quad-mesh parsing failure");
180 throw String(
"IndexTree hypercube-quad-mesh parsing failure");
186 void validate_simplex_edge_index_set(
const SEdgeIndexTree& tree)
190 static const Index v_e[] =
212 Index vector_size = 4;
213 int num_indices = tree.get_num_indices();
215 for(
Index i(0); i < vector_size; ++i)
217 Index current_set_size = tree.get_set_size(i);
218 for(
Index j(0); j < current_set_size; ++j)
220 for(
int k(0); k < num_indices; ++k)
222 current_value = tree.get_index(i, j, k);
225 if(current_value != v_e[count])
226 throw String(
"IndexTreesimplex-edge-mesh parsing failure");
233 throw String(
"IndexTree simplex-edge-mesh parsing failure");
239 void validate_simplex_triangle_index_set(
const TriaIndexTree& tree)
243 static const Index v_t[] =
263 Index vector_size = 4;
264 int num_indices = tree.get_num_indices();
266 for(
Index i(0); i < vector_size; ++i)
268 Index current_set_size = tree.get_set_size(i);
269 for(
Index j(0); j < current_set_size; ++j)
271 for(
int k(0); k < num_indices; ++k)
273 current_value = tree.get_index(i, j, k);
276 if(current_value != v_t[count])
277 throw String(
"IndexTree simplex-triangle-mesh parsing failure");
284 throw String(
"IndexTree simplex-triangle-mesh parsing failure");
std::uint64_t Index
Index data type.