Variable cases

Variable Documentation

static const char cases[256][2]

case mapping For each of the possible vertex states listed in this table there is a specific triangulation of the edge intersection points. The table lists all of them in the form of 0-5 edge triples with the list terminated by the invalid value -1. For example: case[3] list the 2 triangles formed when cube[0] and cube[1] are inside of the surface, but the rest of the cube is not.

Cube description: 7 ________ 6 _____6__ ________ /| /| 7/| /| /| /| / | / | / | /5 | / 6 / | 4 /_______ / | /__4____ / 10 /_______3/ | | | |5 | | 11 | | | | | 2 | | 3|__|_____|2 | |__|__2__| | 4 |__|_____| | / | / 8 3/ 9 / | / | / | / | / | / | /1 | / 5 / |/_______|/ |/___0___|/ |/_1_____|/ 0 1 0 1