public Mesh createMesh(Vector3f scale, Vector2f tcScale, boolean center){
        FloatBuffer pb = writeVertexArray(null, scale, center);
        FloatBuffer tb = writeTexCoordArray(null, Vector2f.ZERO, tcScale);
        FloatBuffer nb = writeNormalArray(null, scale);
        IntBuffer ib = writeIndexArray(null);
        Mesh m = new Mesh();
        m.setBuffer(Type.Position, 3, pb);
        m.setBuffer(Type.Normal, 3, nb);
        m.setBuffer(Type.TexCoord, 2, tb);
        m.setBuffer(Type.Index, 3, ib);
        m.setStatic();
        m.updateBound();
        return m;
    }
Creates a vertex array from the height data in this Geomap

The scale argument specifies the scale to use for the vertex buffer.
For example, if scale is 10,1,10, then the greatest X value is getWidth()*10

@param store A preallocated FloatBuffer where to store the data (optional), 
size must be &gt;= getWidth()*getHeight()*3
@param scale Created vertexes are scaled by this vector

@return store, or a new FloatBuffer if store is null

@throws NullPointerException If isLoaded() is false
jme3-terrain/src/main/java/com/jme3/terrain/GeoMap.java