9.9 Adjust terrain

This function is used to adjust local terrain.
1) Firstly, it is necessary to draw a field leveling range or select a layout zone as the range;
2) Fit a plane based on the points clicked by the mouse when drawing the range (or the points outside the layout zone contour), and the slope tilt and slope azimuth of this plane are the default values of the relevant parameters in the pop-up interface;
3) Calculate the elevation of the vertices of the triangle within the range line, take the average value, which is the default elevation value in the pop-up interface;

4) Adjustment objective:
a) Determine the slope tilt and azimuth of the field leveling based on the value input by the users;
b) Determine the average elevation of the site based on the elevation input by the users; When no elevation is set, adjust the elevation to a balance between excavation and filling (with a soil looseness coefficient of 1.1);
c) Adjust the vertices of the triangle within the range to the above plane (determined by the three parameters of slope tilt, slope azimuth, and elevation);