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

Home » Public Forums » archive » Point inside/outside a polygon?
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: Point inside/outside a polygon? [message #26264 is a reply to message #26180] Fri, 10 August 2001 17:40 Go to previous messageGo to previous message
Jim Pendleton is currently offline  Jim Pendleton
Messages: 13
Registered: July 2001
Junior Member
"Dennis Boccippio" <djboccip@hotmail.com> wrote in message
news:djboccip-ECCC8D.11144210082001@news.mia.bellsouth.net.. .
> Hi all,
>
> 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...
>
> Thanks,
>
> Dennis Boccippio
>

Hi Dennis,

The IDLanROI class has a method named "ContainsPoints" to perform this
operation efficiently. It will let you know if a point lies exactly on an
edge or
vertex, or completely inside or outside the specified polygon. And it's also
good in three dimensions. See the IDLanROIGroup class for extended
functionality.

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Discussion on global variables in IDL
Next Topic: visualizing data in 3-D

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

Current Time: Wed Dec 03 12:34:32 PST 2025

Total time taken to generate the page: 0.00244 seconds