9596979899100101102103104105
TriangleArray geom = new TriangleArray(vertexCount); geom.setCoordinates(0, coords); geom.setTextureCoordinates(0, 0, texCoords); geom.calculateFaceNormals(); geom.setOptimization(Optimization.USE_DISPLAY_LISTS); terrainShape.setGeometry(geom);