You can specify the X and Y coordinates and get the Z coordinate on a surface made up of the elements collected in the iLandList. If the point is not above the surface of the "ground" or is above the hole, then the landing is not performed.

Calling:

ac_request("do_point_landing", int iLandList, double doffset, double x1,double y1, double &z1);


Here:

x1,y1 - source coords of the point.

doffset - residual displacement above the surface.

z1 - landing result.

iLandList - internal list number with elements - ground.


Example.

Select all elements from the "My land" layer in the list No. 1 and land the point with coordinates x=1, y=1 to a height of 0, i.e. straight to the surface.


ac_request("load_elements_list,1,"ZombieElemType","Layer","My land","MainFilter",3);
double doffset=0;
double x=1, y=1, z=0;
ac_request("do_point_landing", 1, doffset, x,y,z);
cout << "The result is the z coordinate on the surface = "<< "\n";