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 #ifndef MARCHING_CUBES_TABLE_H | 23 #ifndef MARCHING_CUBES_TABLE_H |
2 #define MARCHING_CUBES_TABLE_H | 24 #define MARCHING_CUBES_TABLE_H |
3 | 25 |
4 /* number of configurations */ | 26 /* number of configurations */ |
5 #define TOTCONF 256 | 27 #define TOTCONF 256 |
6 | 28 |
7 /* maximum number of triangles per configuration */ | 29 /* maximum number of triangles per configuration */ |
8 #define MAX_TRIS 10 | 30 #define MAX_TRIS 10 |
9 | 31 |
10 /* number of triangles in each configuration */ | 32 /* number of triangles in each configuration */ |
11 extern const int marching_cubes_numtri[TOTCONF]; | 33 extern const int marching_cubes_numtri[TOTCONF]; |
12 | 34 |
13 /* table of triangles in each configuration */ | 35 /* table of triangles in each configuration */ |
14 extern const int marching_cubes_tris[TOTCONF][MAX_TRIS][3]; | 36 extern const int marching_cubes_tris[TOTCONF][MAX_TRIS][3]; |
15 | 37 |
16 #endif | 38 #endif |
LEFT | RIGHT |