System.out.println(vertex.length);
    private void buildVertices(int[] heightMap) {        vertex = new Vector3f[heightMap.length];        for (int x = 0; x < size; x++) {            for (int y = 0; y < size; y++) {                vertex[x + (y * size)] = new Vector3f(x * stepScale,                        heightMap[x + (y * size)], y * stepScale);            }        }        //set up the indices        int value = ((size - 1) * (size - 1)) * 6;        indices = new int[value];        int count = 0;        //go through entire array up to the second to last column.        for (int i = 0; i < (size * (size - 1)); i++) {            //we want to skip the top row.            if (i % ((size * (i / size + 1)) - 1) == 0 && i != 0) {                continue;            }            //set the top left corner.            indices[count++] = i;            //set the bottom right corner.            indices[count++] = ((1 + size) + i);            //set the top right corner.            indices[count++] = (1 + i);            //set the top left corner            indices[count++] = i;            //set the bottom left corner            indices[count++] = size + i;            //set the bottom right corner            indices[count++] = ((1 + size) + i);        }        setVertices(vertex);        setIndices(indices);    }