LEFT | RIGHT |
| 1 /* |
| 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
| 3 * |
| 4 * This program is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU General Public License |
| 6 * as published by the Free Software Foundation; either version 2 |
| 7 * of the License, or (at your option) any later version. |
| 8 * |
| 9 * This program is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 * GNU General Public License for more details. |
| 13 * |
| 14 * You should have received a copy of the GNU General Public License |
| 15 * along with this program; if not, write to the Free Software Foundation, |
| 16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 * |
| 18 * Contributor(s): Tao Ju |
| 19 * |
| 20 * ***** END GPL LICENSE BLOCK ***** |
| 21 */ |
| 22 |
1 #include "marching_cubes_table.h" | 23 #include "marching_cubes_table.h" |
2 | 24 |
3 /* number of triangles in each configuration */ | 25 /* number of triangles in each configuration */ |
4 const int marching_cubes_numtri[TOTCONF] = { | 26 const int marching_cubes_numtri[TOTCONF] = { |
5 0, 1, 1, 2, 1, 2, 4, 3, 1, 4, 2, 3, 2, 3, 3, 2, 1, 2, 4, 3, 4, 3, 5, 4, | 27 0, 1, 1, 2, 1, 2, 4, 3, 1, 4, 2, 3, 2, 3, 3, 2, 1, 2, 4, 3, 4, 3, 5, 4, |
6 6, 5, 5, 4, 5, 4, 4, 3, 1, 4, 2, 3, 6, 5, 5, 4, 4, 5, 3, 4, 5, 4, 4, 3, | 28 6, 5, 5, 4, 5, 4, 4, 3, 1, 4, 2, 3, 6, 5, 5, 4, 4, 5, 3, 4, 5, 4, 4, 3, |
7 2, 3, 3, 2, 5, 4, 4, 3, 5, 4, 4, 3, 4, 3, 3, 2, 1, 4, 6, 5, 2, 3, 5, 4, | 29 2, 3, 3, 2, 5, 4, 4, 3, 5, 4, 4, 3, 4, 3, 3, 2, 1, 4, 6, 5, 2, 3, 5, 4, |
8 4, 5, 5, 4, 3, 4, 4, 3, 2, 3, 5, 4, 3, 2, 4, 3, 5, 4, 4, 3, 4, 3, 3, 2, | 30 4, 5, 5, 4, 3, 4, 4, 3, 2, 3, 5, 4, 3, 2, 4, 3, 5, 4, 4, 3, 4, 3, 3, 2, |
9 4, 5, 5, 4, 5, 4, 4, 3, 5, 4, 4, 3, 4, 3, 3, 2, 3, 4, 4, 3, 4, 3, 3, 2, | 31 4, 5, 5, 4, 5, 4, 4, 3, 5, 4, 4, 3, 4, 3, 3, 2, 3, 4, 4, 3, 4, 3, 3, 2, |
10 4, 3, 3, 2, 3, 2, 2, 1, 1, 6, 4, 5, 4, 5, 5, 4, 2, 5, 3, 4, 3, 4, 4, 3, | 32 4, 3, 3, 2, 3, 2, 2, 1, 1, 6, 4, 5, 4, 5, 5, 4, 2, 5, 3, 4, 3, 4, 4, 3, |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, | 545 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, |
524 {{0,4,5}, {0,5,1}, {0,0,0}, {0,0,0}, {0,0,0}, | 546 {{0,4,5}, {0,5,1}, {0,0,0}, {0,0,0}, {0,0,0}, |
525 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, | 547 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, |
526 {{8,5,1}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, | 548 {{8,5,1}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, |
527 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, | 549 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, |
528 {{4,8,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, | 550 {{4,8,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, |
529 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, | 551 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}}, |
530 {{0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, | 552 {{0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, |
531 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}} | 553 {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}, {0,0,0}} |
532 }; | 554 }; |
LEFT | RIGHT |