![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2012
Posts: 8
![]() |
What is the max radius value for a SurfaceCircle? My circle displays well, unless the radius value exceeds about 10200000.0. I would think that any value less than about 20000 Km (half the circumference of the earth) would display. Actually, I just tried the value above and the wrong half of the globe is drawn. In other words, my specified center was not in the shaded area of the circle. As you would expect, the code is quite simple:
Code:
int red = 10;
int green = 215;
int blue = 10;
double transparency = 0.4;
double latVal = 36.8027777;
double lonVal = 10.1797222;
double radiusVal = 10200000.0;
ShapeAttributes attrs = new BasicShapeAttributes();
attrs.setInteriorMaterial(new Material(new Color(red, green, blue)));
attrs.setInteriorOpacity(transparency);
LatLon center = LatLon.fromDegrees(latVal, lonVal);
SurfaceCircle sc = new SurfaceCircle(attrs, center, radiusVal);
pathLayer.addRenderable(sc);
myFrame.getWwjPanel().getWwd().redraw();
|
|
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
The maximum radius for a surface circle is the radius of the earth (about 6300 km). As the globe is modelled after the WGS84 elllipsoid, it is difficult to define the exact value, but it is not far from that.
|
|
|
|
#3 | |
|
Member
Join Date: Jan 2012
Posts: 94
![]() |
Your example already fails for me at
Code:
double radiusVal = 6000000.0; Quote:
Ideally, every positive radius for a SurfaceCircle should display correctly. For a radius >= half the earth circumference that would mean that the SurfaceCircle covers the whole surface of the earth. |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WWJ 1.2 vertex_buffer_object problem | RAM357 | Development Help | 26 | 08-05-2011 01:44 AM |
| Alteration to Radius of StarsLayer | kluhm | Development Help | 2 | 09-15-2010 09:36 AM |
| Radius of Earth | davicentef | WorldWind General | 4 | 06-03-2010 10:44 PM |
| Viewable max min lat lon cordinates help | herehere | Development Help | 6 | 07-22-2009 12:48 AM |
| 3D Shapefile, 3D max, DirectX Import | Guest_Chris_* | Developers' Corner | 3 | 08-12-2008 10:29 PM |