/* test_split_tetra.c */ /* 8 tetrahedrons built from each tetrahedron */ #include #include #include static float vert[8193][3] = {{0.0, 0.0, 0.0}, /* unused, start with [1] */ {-1.0,-1.0,-1.0}, {-0.4, 0.9, -0.8}, /* 1,2 */ { 0.7, 0.4,-1.0}, { 0.5, 0.5, 1.0}}; /* 3,4 */ static int nvert = 4; /* increment before inserting, count not including zero*/ static int ivert[8193][4] = {{1,2,3,4}}; static int npoly = 1; /* number of 4 vertex tetrahedrons in ivert*/ static int bound[8193][3] = {{1,2,3}, {1,2,4}, {1,3,4}, {2,3,4}}; static int nbound = 4; static int uniqueb[8193] = {1, 2, 3, 4}; static int nuniqueb = 4; static int nv; static FILE* ofile; static char filename[] = "33_ts.tetra"; int in_bound(int k) { int i, found = 0; for(i=0; i