33 #ifndef __H__UG_prism_rules_impl
34 #define __H__UG_prism_rules_impl
40 namespace prism_rules{
50 for(
int i = 1; i < 6; ++i){
56 static const int permutations [6][6] = {{0, 1, 2, 3, 4, 5},
63 const int* I = permutations[smallest];
65 int t0 = cmp(I[1], I[5]) ? I[1] : I[5];
66 int t1 = cmp(I[2], I[4]) ? I[2] : I[4];
71 newIndsOut[i++] = I[0]; newIndsOut[i++] = I[1];
72 newIndsOut[i++] = I[2]; newIndsOut[i++] = I[5];
75 newIndsOut[i++] = I[0]; newIndsOut[i++] = I[1];
76 newIndsOut[i++] = I[5]; newIndsOut[i++] = I[4];
79 newIndsOut[i++] = I[0]; newIndsOut[i++] = I[4];
80 newIndsOut[i++] = I[5]; newIndsOut[i++] = I[3];
86 newIndsOut[i++] = I[0]; newIndsOut[i++] = I[1];
87 newIndsOut[i++] = I[2]; newIndsOut[i++] = I[4];
90 newIndsOut[i++] = I[0]; newIndsOut[i++] = I[4];
91 newIndsOut[i++] = I[2]; newIndsOut[i++] = I[5];
94 newIndsOut[i++] = I[0]; newIndsOut[i++] = I[4];
95 newIndsOut[i++] = I[5]; newIndsOut[i++] = I[3];
int ConvertToTetrahedra(int *newIndsOut, TCmp cmp)
fills an array of integers describing tetrahedra that shall replace the prism
Definition: prism_rules_impl.h:43
@ GOID_TETRAHEDRON
Definition: grid_object_ids.h:43