In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what are the problems of generating walls in the middle line of TE secondary development. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
In the development of TE, the line can be displayed as a wall by setting the properties of the line, and the effect can be viewed in the map by using the TE tool Fence and Wall.
In the work of the development, to place a three-dimensional picture to display, on the spherical terrain, only in this way, in the large Radian of the earth can be bent display, the following is the function code:
/ / create a line
ITerrainPolyline66 _ cPolyline = null
Var _ cRing = _ sgworld.Creator.GeometryCreator.CreateLineStringGeometry (_ cVerticesArray)
Uint nLineColor = 0x8fFF0000
/ / height type is set to relative to the ground
AltitudeTypeCode eAltitudeTypeCode = AltitudeTypeCode.ATC_TERRAIN_RELATIVE
_ cPolyline = _ sgworld.Creator.CreatePolyline (_ cRing, nLineColor, eAltitudeTypeCode, groupid, layerName)
/ / set the transparency of the line border to 0 and map the translucent effect
_ cPolyline.LineStyle.Color.SetAlpha (0)
_ cPolyline.FillStyle.Color.SetAlpha (.75)
/ / set this property to achieve the effect of sticking to the ground.
_ cPolyline.ExtendToGround = true
/ / set this property to make the line follow a wide range of radians of the earth.
_ cPolyline.Spline = true
/ / set the mapping of the Lin
_ cPolyline.FillStyle.Texture.FileName = _ picOut.PicPath
/ / sets the rotation angle of the map
_ leftPolygon.FillStyle.Texture.RotateAngle = 180
The above is the implementation code, in which there are several problems, please pay attention to:
1. In the case of two points, the greater the Radian of the line, you will find that the map is one piece shorter than the arc, and you can add some points in the middle.
2, the problem of mapping, the direction of the map is uncertain, which seems to be irregular, sometimes the direction of the picture map is correct, sometimes it is the opposite.
3. Add a point in the middle according to the way 1, and the direction of the map is even less controllable.
4. The effect is OK.
This is the end of this article on "what are the problems of generating walls in the middle line of TE secondary development?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.