What is the principle of profile analysis in TE development?
This article is to share with you about the principle of profile analysis in TE development. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
In the secondary development of te, the profile analysis function is sometimes used, and there is also this function in tepro. In the upgrade process of te, a web page is popped up to display the results of profile analysis, and the effect is more intuitive.
During the analysis, the tepro also shows that the accuracy of the analysis should be set. In the case of high accuracy, the speed of the analysis is relatively slow.
If you don't want to use te's off-the-shelf method CreateTerrainProfile, how to develop it? let's briefly talk about the principle of profile analysis.
Starting from the two simplest points, the starting point and the end point, using the AimTo method in Position, you can get the starting point to the end point. Using the Move method in Position, according to the yaw angle obtained in the AimTo method, you can move from the starting point to the end point.
In order to achieve the high precision of the analysis, the distance of each movement needs to be relatively small. The Move method of Position can get a new location coordinate. Using the GetGroundHeightInfo method of Terrain, you can obtain the elevation of the current position, which can include or not include objects on the ground. This depends on the requirements in the calculation. Objects on the ground are not taken by default in tepro.
From the starting point to the end point, these points are connected to form a segment of the section.
On the control of the statistical chart, the simulated profile effect can be drawn on the control according to the distance from the starting point and the elevation of each point in the middle.
These are the principles of profile analysis in TE development. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.