Re: Point Inside Polygon - Ray Method
- From: Han de Bruijn <Han.deBruijn@xxxxxxxxxxxxxx>
- Date: Fri, 21 Apr 2006 09:55:00 +0200
Virgil wrote:
If the boundary of a plane region is a simple closed curve, then one ray from any point not on the boundary is enough to determine whether that point is inside or outside the region. The point is inside or outside according to whether the parity of the number of intersections of the ray with the boundary is odd or even (with points of multiple contact of the ray with the boundary counted with their multiplicities, though a slight dispacement of the ray will usually eliminate all such multiple points).
Quite a naive response. (Apparently, you have never tried to _actually_
work out and computer-code this yourself) The following page contains
theory, free (Windows) executables and all of accompanying source code:
http://huizen.dto.tudelft.nl/deBruijn/grondig/crossing.htm
Han de Bruijn
.
- Follow-Ups:
- Re: Point Inside Polygon - Ray Method
- From: Toni Lassila
- Re: Point Inside Polygon - Ray Method
- From: Virgil
- Re: Point Inside Polygon - Ray Method
- References:
- Point Inside Polygon - Ray Method
- From: Narek Saribekyan
- Re: Point Inside Polygon - Ray Method
- From: Keith A. Lewis
- Re: Point Inside Polygon - Ray Method
- From: Larry Hammick
- Re: Point Inside Polygon - Ray Method
- From: James Waldby
- Re: Point Inside Polygon - Ray Method
- From: Virgil
- Point Inside Polygon - Ray Method
- Prev by Date: Re: Testing if sign(a.x)=sign(b.x)
- Next by Date: Re: Should be easy
- Previous by thread: Re: Point Inside Polygon - Ray Method
- Next by thread: Re: Point Inside Polygon - Ray Method
- Index(es):
Relevant Pages
|