Translate posts to Experimental | Feedback
Google
Official Google Earth Download Site
Topic Options
Rate This Topic
Previous Topic
View All Topics Index
Next Topic
#431887 - 06/02/06 09:35 AM Polygon (shape) draw order
rsgrillo Offline
Craftsman

Registered: 07/30/05
Posts: 148
Loc: Piracicaba, Sao Paulo, Brasil ...
There are several posts on filled polygons that don't show the right colors in GE.

It was discussed that the polygon draw order have to be counter clockwise so the right color will be shown in GE.

I have received few emails asking on how to find out (from the coordinates) if the draw order of a polygon is clockwise or counter clockwise.

Well, it easy. You have to calculate the signed area of the polygon, according to:




If the signed area is negative, the polygon is clockwise. There are other methods.
_________________________
Sgrillo

Free GoogleEarth Tools:
http://www.sgrillo.net/googleearth/

Top
#431888 - 06/03/06 02:38 AM Re: Polygon (shape) draw order [Re: rsgrillo]
tekgergedan Moderator Offline
Master Guide

Registered: 09/25/05
Posts: 8300
Loc: Turkey GMT+2
rs, go on please. Great info.
_________________________
...
...
what you are is what you eat and what you think ...
...
Install 5.1 and be aware you can switch back ...
...
some help :: more help :: further help :: advanced help :: interactive help ...
...
developer help :: elf help :: full help ...

Top
#431889 - 06/11/06 08:20 AM Right polygon altitude to show fill color [Re: rsgrillo]
rsgrillo Offline
Craftsman

Registered: 07/30/05
Posts: 148
Loc: Piracicaba, Sao Paulo, Brasil ...
If you want to correctly show a filled large polygon, not clamped to ground, you can find out the correct altitude to locate your polygon with the following equation:



where Radius is the radius of the earth and length is the maximum length of the polygon (if circle is 2*radius, if square is the side length, for not regular polygon is the maximum axis). Take care with the units for Radius and length.

Add 5-10% to this value to shown a continuous filled color.

(Sorry for the "lenght" in the equation)
_________________________
Sgrillo

Free GoogleEarth Tools:
http://www.sgrillo.net/googleearth/

Top