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
POLYFILLV weirdness [message #51350] Thu, 16 November 2006 19:29 Go to previous message
dktr.ted is currently offline  dktr.ted
Messages: 17
Registered: November 2006
Junior Member
Hi all,

I've been having problems with POLYFILLV. Consider the case below:

IDL> verts = TRANSPOSE([ [ 2, 3.25, 2, 0.75, 2 ], [ 0.75, 2, 3.25, 2,
0.75 ] ])
IDL> dim = [ 6, 6 ]
IDL> inside = POLYFILLV(verts(0,0:3), verts(1,0:3), dim(0), dim(1))

Verts defines a diamond of width 2.5, centered at [2, 2], which
according to the POLYFILLV documentation should be the center of pixel
[2, 2]. The results of the POLYFILLV call should give me 5 pixels,
specifically [2, 3], [1, 2], [2, 2], [3, 2], and [2, 1]. However,
instead I get 6 pixels, those listed plus [3, 3]. From the POLYFILLV
documentation I can't for the life of me figure out how this extra
pixel would be regarded as being inside the diamond.

Has anyone else encountered any funny effects at polygon edges when
using POLYFILLV? Any advice or commiseration would be much
appreciated. Thanks!









Ted
[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 18:21:13 PDT 2025

Total time taken to generate the page: 0.00459 seconds