⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lookuptable.h

📁 RBF平台
💻 H
📖 第 1 页 / 共 5 页
字号:
/* 181: 0,    2,    4, 5,    7,  */  {  7, 11 },/* 182:    1, 2,    4, 5,    7,  */  {  6, 42 },/* 183: 0, 1, 2,    4, 5,    7,  */  {  3, 14 },/* 184:          3, 4, 5,    7,  */  { 14, 11 },/* 185: 0,       3, 4, 5,    7,  */  {  5, 36 },/* 186:    1,    3, 4, 5,    7,  */  {  6, 44 },/* 187: 0, 1,    3, 4, 5,    7,  */  {  2, 17 },/* 188:       2, 3, 4, 5,    7,  */  {  6, 47 },/* 189: 0,    2, 3, 4, 5,    7,  */  {  3, 18 },/* 190:    1, 2, 3, 4, 5,    7,  */  {  4,  7 },/* 191: 0, 1, 2, 3, 4, 5,    7,  */  {  1,  9 },/* 192:                   6, 7,  */  {  2, 11 },/* 193: 0,                6, 7,  */  {  6,  8 },/* 194:    1,             6, 7,  */  {  6, 15 },/* 195: 0, 1,             6, 7,  */  { 10,  0 },/* 196:       2,          6, 7,  */  {  5, 17 },/* 197: 0,    2,          6, 7,  */  { 12,  8 },/* 198:    1, 2,          6, 7,  */  { 11,  7 },/* 199: 0, 1, 2,          6, 7,  */  {  6, 26 },/* 200:          3,       6, 7,  */  {  5, 19 },/* 201: 0,       3,       6, 7,  */  { 14,  4 },/* 202:    1,    3,       6, 7,  */  { 12, 18 },/* 203: 0, 1,    3,       6, 7,  */  {  6, 29 },/* 204:       2, 3,       6, 7,  */  {  8,  4 },/* 205: 0,    2, 3,       6, 7,  */  {  5, 35 },/* 206:    1, 2, 3,       6, 7,  */  {  5, 40 },/* 207: 0, 1, 2, 3,       6, 7,  */  {  2, 15 },/* 208:             4,    6, 7,  */  {  5, 22 },/* 209: 0,          4,    6, 7,  */  { 11,  5 },/* 210:    1,       4,    6, 7,  */  { 12, 19 },/* 211: 0, 1,       4,    6, 7,  */  {  6, 30 },/* 212:       2,    4,    6, 7,  */  { 14, 10 },/* 213: 0,    2,    4,    6, 7,  */  {  6, 36 },/* 214:    1, 2,    4,    6, 7,  */  {  6, 43 },/* 215: 0, 1, 2,    4,    6, 7,  */  {  4,  4 },/* 216:          3, 4,    6, 7,  */  {  9,  7 },/* 217: 0,       3, 4,    6, 7,  */  {  5, 37 },/* 218:    1,    3, 4,    6, 7,  */  {  7, 15 },/* 219: 0, 1,    3, 4,    6, 7,  */  {  3, 17 },/* 220:       2, 3, 4,    6, 7,  */  {  5, 44 },/* 221: 0,    2, 3, 4,    6, 7,  */  {  2, 19 },/* 222:    1, 2, 3, 4,    6, 7,  */  {  3, 22 },/* 223: 0, 1, 2, 3, 4,    6, 7,  */  {  1, 10 },/* 224:                5, 6, 7,  */  {  5, 23 },/* 225: 0,             5, 6, 7,  */  { 12, 11 },/* 226:    1,          5, 6, 7,  */  { 14,  8 },/* 227: 0, 1,          5, 6, 7,  */  {  6, 31 },/* 228:       2,       5, 6, 7,  */  {  9,  6 },/* 229: 0,    2,       5, 6, 7,  */  {  7, 12 },/* 230:    1, 2,       5, 6, 7,  */  {  5, 42 },/* 231: 0, 1, 2,       5, 6, 7,  */  {  3, 15 },/* 232:          3,    5, 6, 7,  */  { 11, 11 },/* 233: 0,       3,    5, 6, 7,  */  {  6, 38 },/* 234:    1,    3,    5, 6, 7,  */  {  6, 45 },/* 235: 0, 1,    3,    5, 6, 7,  */  {  4,  5 },/* 236:       2, 3,    5, 6, 7,  */  {  5, 45 },/* 237: 0,    2, 3,    5, 6, 7,  */  {  3, 19 },/* 238:    1, 2, 3,    5, 6, 7,  */  {  2, 21 },/* 239: 0, 1, 2, 3,    5, 6, 7,  */  {  1, 11 },/* 240:             4, 5, 6, 7,  */  {  8,  5 },/* 241: 0,          4, 5, 6, 7,  */  {  5, 38 },/* 242:    1,       4, 5, 6, 7,  */  {  5, 43 },/* 243: 0, 1,       4, 5, 6, 7,  */  {  2, 18 },/* 244:       2,    4, 5, 6, 7,  */  {  5, 46 },/* 245: 0,    2,    4, 5, 6, 7,  */  {  3, 20 },/* 246:    1, 2,    4, 5, 6, 7,  */  {  2, 22 },/* 247: 0, 1, 2,    4, 5, 6, 7,  */  {  1, 12 },/* 248:          3, 4, 5, 6, 7,  */  {  5, 47 },/* 249: 0,       3, 4, 5, 6, 7,  */  {  2, 20 },/* 250:    1,    3, 4, 5, 6, 7,  */  {  3, 23 },/* 251: 0, 1,    3, 4, 5, 6, 7,  */  {  1, 13 },/* 252:       2, 3, 4, 5, 6, 7,  */  {  2, 23 },/* 253: 0,    2, 3, 4, 5, 6, 7,  */  {  1, 14 },/* 254:    1, 2, 3, 4, 5, 6, 7,  */  {  1, 15 },/* 255: 0, 1, 2, 3, 4, 5, 6, 7,  */  {  0, -1 }};//_____________________________________________________________________________//_____________________________________________________________________________/** * \brief tiling table for case 1 * For each of the case above, the specific triangulation of the edge * intersection points is given. * When a case is ambiguous, there is an auxiliary table that contains * the face number to test and the tiling table contains the specific * triangulations depending on the results * A minus sign means to invert the result of the test. *///-----------------------------------------------------------------------------static const char tiling1[16][3] = {/*   1: 0,                       */  {  0,  8,  3 },/*   2:    1,                    */  {  0,  1,  9 },/*   4:       2,                 */  {  1,  2, 10 },/*   8:          3,              */  {  3, 11,  2 },/*  16:             4,           */  {  4,  7,  8 },/*  32:                5,        */  {  9,  5,  4 },/*  64:                   6,     */  { 10,  6,  5 },/* 128:                      7,  */  {  7,  6, 11 },/* 127: 0, 1, 2, 3, 4, 5, 6,     */  {  7, 11,  6 },/* 191: 0, 1, 2, 3, 4, 5,    7,  */  { 10,  5,  6 },/* 223: 0, 1, 2, 3, 4,    6, 7,  */  {  9,  4,  5 },/* 239: 0, 1, 2, 3,    5, 6, 7,  */  {  4,  8,  7 },/* 247: 0, 1, 2,    4, 5, 6, 7,  */  {  3,  2, 11 },/* 251: 0, 1,    3, 4, 5, 6, 7,  */  {  1, 10,  2 },/* 253: 0,    2, 3, 4, 5, 6, 7,  */  {  0,  9,  1 },/* 254:    1, 2, 3, 4, 5, 6, 7,  */  {  0,  3,  8 }};//_____________________________________________________________________________//_____________________________________________________________________________/** * \brief tiling table for case 2 * For each of the case above, the specific triangulation of the edge * intersection points is given. * When a case is ambiguous, there is an auxiliary table that contains * the face number to test and the tiling table contains the specific * triangulations depending on the results * A minus sign means to invert the result of the test. *///-----------------------------------------------------------------------------static const char tiling2[24][6] = {/*   3: 0, 1,                    */  {  1,  8,  3,  9,  8,  1 },/*   9: 0,       3,              */  {  0, 11,  2,  8, 11,  0 },/*  17: 0,          4,           */  {  4,  3,  0,  7,  3,  4 },/*   6:    1, 2,                 */  {  9,  2, 10,  0,  2,  9 },/*  34:    1,          5,        */  {  0,  5,  4,  1,  5,  0 },/*  12:       2, 3,              */  {  3, 10,  1, 11, 10,  3 },/*  68:       2,          6,     */  {  1,  6,  5,  2,  6,  1 },/* 136:          3,          7,  */  {  7,  2,  3,  6,  2,  7 },/*  48:             4, 5,        */  {  9,  7,  8,  5,  7,  9 },/* 144:             4,       7,  */  {  6,  8,  4, 11,  8,  6 },/*  96:                5, 6,     */  { 10,  4,  9,  6,  4, 10 },/* 192:                   6, 7,  */  { 11,  5, 10,  7,  5, 11 },/*  63: 0, 1, 2, 3, 4, 5,        */  { 11, 10,  5,  7, 11,  5 },/* 159: 0, 1, 2, 3, 4,       7,  */  { 10,  9,  4,  6, 10,  4 },/* 111: 0, 1, 2, 3,    5, 6,     */  {  6,  4,  8, 11,  6,  8 },/* 207: 0, 1, 2, 3,       6, 7,  */  {  9,  8,  7,  5,  9,  7 },/* 119: 0, 1, 2,    4, 5, 6,     */  {  7,  3,  2,  6,  7,  2 },/* 187: 0, 1,    3, 4, 5,    7,  */  {  1,  5,  6,  2,  1,  6 },/* 243: 0, 1,       4, 5, 6, 7,  */  {  3,  1, 10, 11,  3, 10 },/* 221: 0,    2, 3, 4,    6, 7,  */  {  0,  4,  5,  1,  0,  5 },/* 249: 0,       3, 4, 5, 6, 7,  */  {  9, 10,  2,  0,  9,  2 },/* 238:    1, 2, 3,    5, 6, 7,  */  {  4,  0,  3,  7,  4,  3 },/* 246:    1, 2,    4, 5, 6, 7,  */  {  0,  2, 11,  8,  0, 11 },/* 252:       2, 3, 4, 5, 6, 7,  */  {  1,  3,  8,  9,  1,  8 }};//_____________________________________________________________________________//_____________________________________________________________________________/** * \brief test table for case 3 * One face to test * When the test on the specified face is positive : 4 first triangles * When the test on the specified face is negative : 2 last triangles * * For each of the case above, the specific triangulation of the edge * intersection points is given. * When a case is ambiguous, there is an auxiliary table that contains * the face number to test and the tiling table contains the specific * triangulations depending on the results * A minus sign means to invert the result of the test. *///-----------------------------------------------------------------------------static const char test3[24] = {/*   5: 0,    2,                 */    5,/*  33: 0,             5,        */    1,/* 129: 0,                   7,  */    4,/*  10:    1,    3,              */    5,/*  18:    1,       4,           */    1,/*  66:    1,             6,     */    2,/*  36:       2,       5,        */    2,/* 132:       2,             7,  */    3,/*  24:          3, 4,           */    4,/*  72:          3,       6,     */    3,/*  80:             4,    6,     */    6,/* 160:                5,    7,  */    6,/*  95: 0, 1, 2, 3, 4,    6,     */   -6,/* 175: 0, 1, 2, 3,    5,    7,  */   -6,/* 183: 0, 1, 2,    4, 5,    7,  */   -3,/* 231: 0, 1, 2,       5, 6, 7,  */   -4,/* 123: 0, 1,    3, 4, 5, 6,     */   -3,/* 219: 0, 1,    3, 4,    6, 7,  */   -2,/* 189: 0,    2, 3, 4, 5,    7,  */   -2,/* 237: 0,    2, 3,    5, 6, 7,  */   -1,/* 245: 0,    2,    4, 5, 6, 7,  */   -5,/* 126:    1, 2, 3, 4, 5, 6,     */   -4,/* 222:    1, 2, 3, 4,    6, 7,  */   -1,/* 250:    1,    3, 4, 5, 6, 7,  */   -5};//_____________________________________________________________________________/** * \brief tiling table for case 3.1 * For each of the case above, the specific triangulation of the edge * intersection points is given. * When a case is ambiguous, there is an auxiliary table that contains * the face number to test and the tiling table contains the specific * triangulations depending on the results * A minus sign means to invert the result of the test. *///-----------------------------------------------------------------------------static const char tiling3_1[24][6] = {/*   5: 0,    2,                 */  {  0,  8,  3,  1,  2, 10 },/*  33: 0,             5,        */  {  9,  5,  4,  0,  8,  3 },/* 129: 0,                   7,  */  {  3,  0,  8, 11,  7,  6 },/*  10:    1,    3,              */  {  1,  9,  0,  2,  3, 11 },/*  18:    1,       4,           */  {  0,  1,  9,  8,  4,  7 },/*  66:    1,             6,     */  {  9,  0,  1,  5, 10,  6 },/*  36:       2,       5,        */  {  1,  2, 10,  9,  5,  4 },/* 132:       2,             7,  */  { 10,  1,  2,  6, 11,  7 },/*  24:          3, 4,           */  {  8,  4,  7,  3, 11,  2 },/*  72:          3,       6,     */  {  2,  3, 11, 10,  6,  5 },/*  80:             4,    6,     */  {  5, 10,  6,  4,  7,  8 },/* 160:                5,    7,  */  {  4,  9,  5,  7,  6, 11 },/*  95: 0, 1, 2, 3, 4,    6,     */  {  5,  9,  4, 11,  6,  7 },/* 175: 0, 1, 2, 3,    5,    7,  */  {  6, 10,  5,  8,  7,  4 },/* 183: 0, 1, 2,    4, 5,    7,  */  { 11,  3,  2,  5,  6, 10 },/* 231: 0, 1, 2,       5, 6, 7,  */  {  7,  4,  8,  2, 11,  3 },

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -