public Vector3f toCellSpace(Vector3f worldLocation) {
        Vector3f tileCell = getTileCell(worldLocation);
        tileCell = new Vector3f(Math.round(tileCell.x), tileCell.y, Math.round(tileCell.z));
        return tileCell;
    }
Convert the world location into a cell location (integer coordinates)
jme3-terrain/src/main/java/com/jme3/terrain/geomipmap/TerrainGrid.java