Skip to content
Snippets Groups Projects
Commit 5f49466f authored by lampe's avatar lampe
Browse files

table for hexahedron decomposition is buggy. Not fixed but indicated

[[Imported from SVN: r7873]]
parent 63bf10bc
No related branches found
No related tags found
No related merge requests found
......@@ -58,12 +58,12 @@ typedef struct {
/* */
/****************************************************************************/
static int Pyr[ 2][ 8] = {
static int Pyr[2][8] = {
{0, 1, 2, 4, 0, 2, 3, 4},
{0, 1, 3, 4, 1, 2, 3, 4}
};
static int Pri[ 8][12] = {
static int Pri[8][12] = { /* manual labour, triple check Pri!! */
{0, 4, 5, 3, 1, 4, 2, 0, 2, 4, 5, 0},
{3, 4, 2, 5, 3, 4, 0, 2, 0, 4, 1, 2},
{0, 1, 2, 5, 3, 4, 0, 5, 0, 4, 1, 5},
......@@ -74,7 +74,7 @@ static int Pri[ 8][12] = {
{3, 4, 1, 5, 5, 3, 2, 1, 3, 0, 2, 1}
};
static int Hex[64][24] = {
static int Hex[64][24] = { /* computed with AH's procedural implementation */
{7, 0, 3, 6, 0, 3, 2, 6, 0, 2, 1, 6, 7, 0, 4, 6, 0, 4, 5, 6, 0, 5, 1, 6},
{7, 0, 3, 6, 3, 2, 1, 6, 0, 3, 1, 6, 7, 0, 4, 6, 0, 4, 5, 6, 0, 5, 1, 6},
{7, 0, 3, 6, 0, 3, 2, 6, 0, 2, 1, 6, 7, 0, 4, 6, 4, 5, 1, 6, 0, 4, 1, 6},
......@@ -115,12 +115,12 @@ static int Hex[64][24] = {
{6, 3, 2, 5, 1, 2, 3, 5, 0, 1, 3, 5, 6, 3, 7, 5, 0, 4, 7, 5, 0, 7, 3, 5},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 2, 3, 7, 0, 1, 2, 5, 0, 4, 5, 7, 2, 5, 6, 7, 0, 2, 5, 7,-1,-1,-1,-1},
{0, 2, 3, 7, 0, 1, 2, 5, 0, 4, 5, 7, 2, 5, 6, 7, 0, 2, 5, 7,-1,-1,-1,-1}, /* BUG!? 101000 */
{3, 0, 1, 7, 0, 1, 5, 7, 0, 5, 4, 7, 3, 1, 2, 7, 1, 2, 6, 7, 1, 6, 5, 7},
{4, 1, 5, 7, 1, 5, 6, 7, 1, 6, 2, 7, 4, 1, 0, 7, 0, 3, 2, 7, 1, 0, 2, 7},
{2, 7, 6, 1, 7, 6, 5, 1, 4, 7, 5, 1, 2, 3, 7, 1, 0, 3, 7, 1, 0, 7, 4, 1},
{0, 2, 3, 7, 0, 1, 2, 5, 0, 4, 5, 7, 2, 5, 6, 7, 0, 2, 5, 7,-1,-1,-1,-1},
{0, 2, 3, 7, 0, 1, 2, 5, 0, 4, 5, 7, 2, 5, 6, 7, 0, 2, 5, 7,-1,-1,-1,-1},
{0, 2, 3, 7, 0, 1, 2, 5, 0, 4, 5, 7, 2, 5, 6, 7, 0, 2, 5, 7,-1,-1,-1,-1}, /* BUG!? 101100 */
{0, 2, 3, 7, 0, 1, 2, 5, 0, 4, 5, 7, 2, 5, 6, 7, 0, 2, 5, 7,-1,-1,-1,-1}, /* BUG!? 101101 */
{1, 4, 5, 2, 7, 6, 5, 2, 4, 7, 5, 2, 1, 0, 4, 2, 0, 3, 7, 2, 0, 7, 4, 2},
{4, 1, 5, 7, 5, 6, 2, 7, 1, 5, 2, 7, 4, 1, 0, 7, 1, 0, 3, 7, 1, 3, 2, 7},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment