Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package models;
- import org.lwjgl.util.vector.Vector3f;
- public class MarchingCubesCases {
- //Winding order of triangles use 2,1,0 or 0,1,2
- public static int[] windingOrder = new int[] { 0, 1, 2 };
- // edgeConnection lists the index of the endpoint vertices for each of the 12 edges of the cube
- // edgeConnection[12][2]
- public static int[][] edgeConnection = new int[][]
- {
- {0,1}, {1,2}, {2,3}, {3,0},
- {4,5}, {5,6}, {6,7}, {7,4},
- {0,4}, {1,5}, {2,6}, {3,7}
- };
- // edgeDirection lists the direction vector (vertex1-vertex0) for each edge in the cube
- // edgeDirection[12][3]
Advertisement
Add Comment
Please, Sign In to add comment