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-16-2007, 05:02 PM   #1
tcmsimoes
Junior Member
 
Join Date: Jul 2007
Posts: 8
tcmsimoes is on a distinguished road
Default automatic number of edges on polyline

Hi all,

I was having a problem rendering some polylines. The number of edges is manually set so it does not take into account the distance between the edges.
My problem was that in some cases if two edges were very distant the line linking the two edges crossed the globe.

I made a few changes and now the number of intervals is dependent of the distance between two edges.

basically if do a LatLon.sphericalDistance(initalPoint, finalPoint) and use the degrees to dictate the number of points between the edges.

Maybe such a feature can be incorporated into the release 0.3 of wwd

cheers
tcmsimoes is offline   Reply With Quote
Old 07-16-2007, 05:10 PM   #2
patmurris
WWJ Consultant
 
patmurris's Avatar
 
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
patmurris is an unknown quantity at this point
Default

Actually it is in the pipeline, but didnt made it yet to Polyline... sorry for the trouble.
__________________
My World Wind Java Blog & WW.net Plugins page
patmurris 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
WW1.3.2-Plugin: Layer Edit canosso Add-ons & Scripts 21 02-27-2010 04:37 AM
convert lat/lon forms, SPC, Metes, make path Tom Moran Add-on & Script Development 21 03-06-2006 12:02 AM


All times are GMT +1. The time now is 10:51 AM.


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