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

Home » Public Forums » archive » Re: Filling an outline
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Filling an outline [message #17132] Thu, 16 September 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Jason Jonikas (jjonikas@bos.fti-net.com) writes:

> I've been using polyfillv to fill a polygon specified by arrays created
> from event.x and event.y and then subtract the polygon outline. There
> does not seem to be any keyword that will just return the polygon.

Uh, I think I'm missing something here. Didn't you just pass
the polygon to POLYFILLV?

> The algorythm i've been using to fill in the missing points in the outline
> does not interpolate between points like polyfillv does.

I'm not sure I understand this. POLYFILLV lights up a pixel if
it is inside the polygon. Do you mean your algorithm
doesn't reliably determine "inside" the polygon from "outside"?
If so, here is an article that might help:

http://www.dfanning.com/tips/point_in_polygon.html

> If any one has it i would also like to see the code for polyfillv.

I don't think that is likely to happen. Sorry. :-(

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: map_set question
Next Topic: Filling an outline

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

Current Time: Wed Oct 08 17:45:03 PDT 2025

Total time taken to generate the page: 0.00597 seconds