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

Home » Public Forums » archive » Re: Point inside/outside a polygon?
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: Point inside/outside a polygon? [message #26178] Fri, 10 August 2001 09:37
david[2] is currently offline  david[2]
Messages: 100
Registered: June 2001
Senior Member
Dennis Boccippio writes:

> Does anyone know of IDL routines for determination of whether a point
> datum is inside/outside a closed irregular polygon? I'm told that some
> variants of this functionality are available in Matlab and Mathematica,
> was curious if anyone had implemented a solution for IDL. My usual
> kludge to this is polyfill/mask-based, which is probably a very
> inefficient approach...

Here is an article that describes one approach:

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

I am using the INSIDE program described there to
determine if a contour line is internal or external to
another contour line in a current application
I am building for a client and it works beautifully.

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: Re: bug in IDL's hanning() window-generating function
Next Topic: Re: color widget

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

Current Time: Wed Oct 08 13:26:21 PDT 2025

Total time taken to generate the page: 0.00374 seconds