Home »
Public Forums »
archive »
Re: Filling an outline
Re: Filling an outline [message #17132] |
Thu, 16 September 1999 00:00 |
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
|
|
|
Current Time: Wed Oct 08 20:01:42 PDT 2025
Total time taken to generate the page: 0.80475 seconds