World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 07-25-2012, 04:13 PM   #1
jscWaveLink
Junior Member
 
Join Date: Jul 2012
Posts: 8
jscWaveLink is on a distinguished road
Default Max Radius for SurfaceCircle

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();
Thanks for your help!
jscWaveLink is offline   Reply With Quote
Old 07-26-2012, 04:54 PM   #2
Unregistered
Guest
 
Posts: n/a
Default

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.
  Reply With Quote
Old 08-03-2012, 09:10 AM   #3
BuM
Member
 
Join Date: Jan 2012
Posts: 94
BuM is on a distinguished road
Default Max radius in WW 1.3 = distance of center to closest pole

Your example already fails for me at
Code:
double radiusVal = 6000000.0;
But some playing around revealed that the max radius for a SurfaceCircle is not fix, but depends on the distance of the center to the closest pole. Basically, WW 1.3 fails to correctly display a SurfaceCircle if it is supposed to cover one of the poles. Just play around with different latitudes and radii.

Quote:
The maximum radius for a surface circle is the radius of the earth (about 6300 km).
This does not make any sense at all, why would that be?
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.
BuM is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 11:35 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.