33 #ifndef __H__UG__pyramid_rules__
34 #define __H__UG__pyramid_rules__
57 {4, 0}, {4, 1}, {4, 2}, {4, 3}};
61 {1, 4, 2, -1}, {2, 4, 3, -1},
84 const int FACE_EDGE_INDS[5][4] = {{0, 1, 2, 3}, {4, 5, 0, -1}, {5, 6, 1, -1},
85 {6, 7, 2, -1}, {3, 7, 4, -1}};
89 {{1, 1, 1, 1, 0, 0, 0, 0}, {1, 0, 0, 0, 1, 1, 0, 0},
90 {0, 1, 0, 0, 0, 1, 1, 0}, {0, 0, 1, 0, 0, 0, 1, 1},
91 {0, 0, 0, 1, 1, 0, 0, 1}};
97 const int EDGE_FROM_VRTS[5][5] = {{-1, 0, -1, 3, 4}, {0, -1, 1, -1, 5},
98 {-1, 1, -1, 2, 6}, {3, -1, 2, -1, 7},
106 {{{-1, -1, -1, -1, -1}, {-1, -1, 0, 0, 1}, {-1, 0, -1, 0, -1},
107 {-1, 0, 0, -1, 4}, {-1, 1, -1, 4, -1}},
108 {{-1, -1, 0, 0, 1}, {-1, -1, -1, -1, -1}, {0, -1, -1, 0, 2},
109 {0, -1, 0, -1, -1}, {1, -1, 2, -1, -1}},
110 {{-1, 0, -1, 0, -1}, {0, -1, -1, 0, 2}, {-1, -1, -1, -1, -1},
111 {0, 0, -1, -1, 3}, {-1, 2, -1, 3, -1}},
112 {{-1, 0, 0, -1, 4}, {0, -1, 0, -1, -1}, {0, 0, -1, -1, 3},
113 {-1, -1, -1, -1, -1}, {4, -1, 3, -1, -1}},
114 {{-1, 1, -1, 4, -1}, {1, -1, 2, -1, -1}, {-1, 2, -1, 3, -1},
115 {4, -1, 3, -1, -1}, {-1, -1, -1, -1, -1}}};
119 {{0, 0, 0, 0, 1, 1, -1, -1}, {0, 0, 0, 0, -1, 2, 2, -1},
120 {0, 0, 0, 0, -1, -1, 3, 3}, {0, 0, 0, 0, 4, -1, -1, 4},
121 {1, -1, -1, 4, 1, 1, -1, 4}, {1, 2, -1, -1, 1, 1, 2, -1},
122 {-1, 2, 3, -1, -1, 2, 2, 3}, {-1, -1, 3, 4, 4, -1, 3, 3}};
169 int Refine(
int* newIndsOut,
int* newEdgeVrts,
bool& newCenterOut,
170 vector3* corners = NULL,
bool* isSnapPoint = NULL);
222 template <
class TCmp>
const int NUM_EDGES
Definition: pyramid_rules.h:47
bool IsRegularRefRule(const int edgeMarks)
returns true if the specified edgeMarks would lead to a regular refinement
Definition: pyramid_rules.cpp:492
const int EDGE_FROM_VRTS[5][5]
Associates the index of the connecting edge with each tuple of vertices.
Definition: pyramid_rules.h:97
const int EDGE_VRT_INDS[][2]
the local vertex indices of the given edge
Definition: pyramid_rules.h:56
const int FACE_EDGE_INDS[5][4]
returns the j-th edge of the i-th face
Definition: pyramid_rules.h:84
const int NUM_TRIS
Definition: pyramid_rules.h:49
const int FACE_CONTAINS_EDGE[][8]
tells whether the i-th face contains the j-th edge
Definition: pyramid_rules.h:88
const int NUM_QUADS
Definition: pyramid_rules.h:50
const int NUM_BOTTOM_EDGES
Definition: pyramid_rules.h:73
const int FACE_FROM_VRTS[5][5][5]
Associates the index of the connecting face with each triple of vertices.
Definition: pyramid_rules.h:105
const int NUM_FACES
Definition: pyramid_rules.h:48
const int FACE_FROM_EDGES[][8]
given two edges, the table returns the face, which contains both (or -1)
Definition: pyramid_rules.h:118
const int MAX_NUM_COLLAPSE_INDS_OUT
Definition: pyramid_rules.h:53
const int NUM_VERTICES
Definition: pyramid_rules.h:46
const int OPPOSED_OBJECT[][NUM_VERTICES]
Definition: pyramid_rules.h:71
int ConvertToTetrahedra(int *newIndsOut, TCmp cmp)
fills an array of integers describing tetrahedra that shall replace the pyramid
Definition: pyramid_rules_impl.h:43
const int TOP_EDGE_INDS[NUM_BOTTOM_EDGES]
Definition: pyramid_rules.h:77
const int TOP_VERTEX
the pyramids top
Definition: pyramid_rules.h:65
const int NUM_TOP_EDGES
Definition: pyramid_rules.h:76
const int BOTTOM_EDGE_INDS[NUM_BOTTOM_EDGES]
Definition: pyramid_rules.h:74
int Refine(int *newIndsOut, int *newEdgeVrts, bool &newCenterOut, vector3 *, bool *isSnapPoint)
Definition: pyramid_rules.cpp:56
const int MAX_NUM_INDS_OUT
Definition: pyramid_rules.h:51
int CollapseEdge(int *newIndsOut, int v0, int v1)
Creates new volume elements that result from collapsing the edge between v0 and v1 into v0.
Definition: pyramid_rules.cpp:498
const int FACE_VRT_INDS[][4]
the local vertex indices of the given face
Definition: pyramid_rules.h:60
const int MAX_NUM_CONVERT_TO_TETS_INDS_OUT
Definition: pyramid_rules.h:52