In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of the generation of TerraExplorer Pro built-in pipeline in the secondary development of TE, which is very detailed and has a certain reference value. Interested friends must read it!
By default, there is a tool for pipeline generation in TE, which can generate pipeline data according to vector line data or self-drawn lines. The tool is placed in the TE program directory and is implemented through a web page. When in use, the pop-up is embedded in the lower left of the TE, the path address is: Skyline\ TerraExplorer Pro\ Tools\ CreatePipeLine, which contains web pages, pictures and other materials, as well as several pipeline dae models and connection dae models for model selection in the tool.
(the model in dae format, the map and the main file are placed separately and can be made into xpl2 for use)
Using development tools or text tools, you can view the source code in the pipeline tool and analyze the principle of implementing pipeline generation in TE as follows:
1. In the tool of TE, the pipeline is displayed in the form of a model, and the model has only one point to set the position, so the line expressed by the pipeline should be converted into a point mode.
2. Analyze the incoming pipeline data, calculate the pipeline with two points and one segment of the line, the pipeline is generally buried in the ground, the starting point and the end point have a certain elevation value, and the elevation value should be converted into absolute height.
CurrCoord.ChangeAltitudeType (AltitudeTypeCode.ATC_TERRAIN_ABSOLUTE); nextCoord.ChangeAltitudeType (AltitudeTypeCode.ATC_TERRAIN_ABSOLUTE)
3. The model can set yaw, pitch and roll attributes, and the model can stretch in a certain direction, calculate the direction from the starting point to the end point, stretch along the model, and then display the model in the form of a pipeline.
/ / calculation points to
CurrCoord = currCoord.AimTo (nextCoord)
/ / calculate the length of pipeline
Var SegmentLength = currCoord.DistanceTo (nextCoord)
4. Using TE's method of creating shp, you can generate a model layer, set the key properties of the layer, and display the form of the model.
5. By setting a small model larger than the pipe diameter at the joint of the pipeline, the effect of the model trapped by the joint can be displayed at the beginning and end of the pipeline.
If the pipeline is not demanding, you can use this tool to generate it directly. If you are more advanced, you can let the developer modify the source code and then generate it for use. The above is all the contents of the article "sample analysis of TerraExplorer Pro built-in pipeline generation in the secondary development of TE". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.