Terrain Editor - Heightmap

Hello people

New Problem appeared with heightmap and arranging stuff on it.
Is it possible to get the height out of terrain editor? If so i didnt found it until now.

I did generate the heightmap manualy with greyscale and alpha.
Now i thought about to try this terrain editor tool.

my problem i got now is how those this tool work or build the stuff?
Cause i did add some trees and buildings and arranged there y axis with heightmap.getHeight(x,z).

Thank you
kind regards
Alex

[java]
public void createMarket() {
float marketPosX = -215f;
float marketPosZ = 165f;

    market= new Node("market");
    house1 = newHouseSpatial("Models/House1/house1.mesh.j3o","Materials/house1.j3m",0f,20f);
    house2 = newHouseSpatial("Models/House2/house2.mesh.j3o","Materials/house2.j3m",20f,0f);
    house3 = newHouseSpatial("Models/House3/house3.mesh.j3o","Materials/house3.j3m",0f,-20f);
    house4 = newHouseSpatial("Models/House3/house3.mesh.j3o","Materials/house3.j3m",-20f,0f);
    
    market.attachChild(house1);
    market.attachChild(house2);
    market.attachChild(house3);
    market.attachChild(house4);
    
    float height=terrain.getHeight(new Vector2f(marketPosX, marketPosZ));
    market.move(marketPosX, height, marketPosZ);
    System.out.println("market: "+market.getWorldTranslation());
    List<Spatial> nodeList = market.getChildren();
    setSpatialToTerrainHeight(nodeList,market);
    
    market.addControl(new RigidBodyControl(0));
    bulletAppState.getPhysicsSpace().add(market);
    rootNode.attachChild(market);
}

[/java]

[java]
private void setSpatialToTerrainHeight(List<Spatial> nodeList,Node centerPoint) {
System.out.println("all spatials nodelist: "+nodeList.toString());
System.out.println(“Node for Node: “+nodeList.size());
int size = nodeList.size();
for (int i=0; i<size; i++){
// System.out.println(“Spatial: “+nodeList.get(i));
float x=nodeList.get(i).getWorldTranslation().getX();
float z=nodeList.get(i).getWorldTranslation().getZ();
float height = terrain.getHeight(new Vector2f(x,z));
float diff = height-centerPoint.getWorldTranslation().getY();
// System.out.println(“Spatial x,z,height,diff: “+x+”,”+z+”,”+height+”,”+diff);
nodeList.get(i).move(0,diff,0);
System.out.println("spatials: "+nodeList.get(i).getWorldTranslation());
}
}
[/java]

sry forgott this, and could not edit post anymore

[java]
private Spatial newHouseSpatial(String j3oPath, String matPath, float posX, float posZ) {
Spatial house = assetManager.loadModel(j3oPath);
house.setMaterial(assetManager.loadMaterial(matPath));
Vector3f housePos = new Vector3f();
housePos.setX(posXwSW);
housePos.setZ(posZ
wSW);
housePos.setY(0*wSH);
house.setLocalScale(1.0f);
house.move(housePos);
// System.out.println("houseSpatial: "+house.getWorldTranslation());

    AmbientLight al = new AmbientLight();
    al.setColor(new ColorRGBA(3.0f,3.0f,3.0f,1.0f));
    house.addLight(al);

    return house;
}

[/java]