Drawing a portion of a hemisphere airspace

≯℡__Kan透↙ 提交于 2020-01-16 04:22:09

问题


I am trying to use WorldWind's SphereAirspace to construct a particular 3D airspace. The 3D shape I am trying to construct is a hemisphere cut parallel to the ground at two places, suppose at height h1 and h2 from the ground. The base of hemisphere is parallel to the ground. Found I don't have enough reputation to post an image, you can see the image here: http://forum.worldwindcentral.com/showthread.php?45274-Drawing-a-portion-of-a-hemisphere-airspace

Thought of two solutions: 1.) Get intersection space of a hemisphere and a cuboid: Couldn't find any api for this. 2.) alter the drawing of the hemisphere.: trying to do this

I override the three functions in WorldWind's SphereAirspace drawSphere(), drawUnitSphere() and makeSphere() and tried to modify the drawing to get the cut portion. I am unable to understand the drawing pattern and the parameters that would affect the drawing to give a subset of the whole hemisphere,the way i need.

A direct help or any pointers in terms of the apis used in these functions, where I can study the drawing of this sphere would be helpful.

You can refer the SphereAirspace code here: http://worldwind31.arc.nasa.gov/svn/...eAirspace.java![enter image description here][1]

来源:https://stackoverflow.com/questions/29768277/drawing-a-portion-of-a-hemisphere-airspace

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!