Space Sim
Loading...
Searching...
No Matches
marching_cubes.h File Reference

Marching cubes static header with constants. More...

Go to the source code of this file.

Variables

const int EDGE_TO_VERTICES [12][2]
const int EDGE_TABLE [256]
const int TRIANGLE_TABLE [256][16]

Detailed Description

Marching cubes static header with constants.

See also
https://gist.github.com/dwilliamson/c041e3454a713e58baf6e4f8e5fffecd

Definition in file marching_cubes.h.

Variable Documentation

◆ EDGE_TO_VERTICES

const int EDGE_TO_VERTICES[12][2]
Initial value:
=
{
{0, 1}, {1, 2}, {2, 3}, {0, 3},
{4, 5}, {5, 6}, {6, 7}, {4, 7},
{0, 4}, {1, 5}, {2, 6}, {3, 7}
}

Definition at line 13 of file marching_cubes.h.

Referenced by init(), layout(), and main().

◆ EDGE_TABLE

const int EDGE_TABLE[256]

Definition at line 20 of file marching_cubes.h.

Referenced by init(), layout(), and main().

◆ TRIANGLE_TABLE

const int TRIANGLE_TABLE[256][16]

Definition at line 57 of file marching_cubes.h.

Referenced by init(), layout(), and main().