private void updateVertices(GPUVertices vert) { int cubeIndex = vert.Index; for (int k = 0; triTable[cubeIndex][k] != -1; k += 3) { Vertices.Add(GridUtils.FindVertex(vert, triTable[cubeIndex][k])); Vertices.Add(GridUtils.FindVertex(vert, triTable[cubeIndex][k + 2])); Vertices.Add(GridUtils.FindVertex(vert, triTable[cubeIndex][k + 1])); } }