comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » POLYFILLV weirdness
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: POLYFILLV weirdness [message #51402 is a reply to message #51350] Mon, 20 November 2006 14:49 Go to previous messageGo to previous message
badjelly.witch is currently offline  badjelly.witch
Messages: 27
Registered: May 2006
Junior Member
I second JD's response. There are many routines in IDL that are
disturbingly vague about where the pixel edges and pixel centres lie.
Perhaps this is because of IDL's emphasis on image processing, where
the number of pixels is large and the edge effects don't matter (much).

A few years ago I wrote a reasonably versatile--but not very
fast--pollyfillv-replacement routine using Sutherland-Hodgman clipping
code I got from JD. (I think the problem I was addressing at the time
was to calculate the land fraction for each cell in an ocean-model grid
given coastline information.) Just the other day I had to revive this
stuff and after 20 minutes of intense mental anguish I established that
it works as it should and on a modern computer it's acceptably fast.
The routine handles arbitray polygons projected onto rectilinear or
curvilinear 2D grids. I'm happy to give you a copy, or you might want
to try JD's implementation.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget_Droplist
Next Topic: open and save a set of image

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:56:44 PDT 2025

Total time taken to generate the page: 0.00412 seconds