Skip to content

foresight_voxel_tables ​

foresight_voxel_tables, gnuplot 6.0's marching cubes tables (marching_cubes.h, qt_table.h).

GENERATED from gnuplot 6.0's src/marching_cubes.h and src/qt_table.h (the night of 2026-11-27): the edges a corner pattern cuts (bit n for edge n) and the facets of each of the 256 patterns, as triangles only (three edge numbers each, -1 after the last) and as gnuplot's default mixture of quadrangles and triangles (four edge numbers each, the fourth -1 for a triangle, -1 after the last). Columns of 13 per pattern (Fortran's order: pattern p is column p + 1).

Source: src/lib/foresight_voxel_tables.F90

Variables ​

NameTypeAttributesDescription
VERTEX_OFFSETinteger(kind=I4P)parameterCube corners from [i,j,k].
CUBE_EDGE_FLAGSinteger(kind=I4P)parameterEdges cut by each corner pattern.
TRIANGLE_TABLEinteger(kind=I4P)parameterTriangles of each pattern.
QT_TABLEinteger(kind=I4P)parameterQuadrangles and triangles of each pattern.

Released under the GPL v3, BSD 2-Clause, BSD 3-Clause or MIT License.