in reply to Re: Determing whether point falls inside or outside a complex polygon
in thread Determing whether point falls inside or outside a complex polygon

Not quite. If the line intersects with an *odd* number of polygon segments, then the point is inside the polygon (see the drawings on that link I posted above).

-b

  • Comment on Re^2: Determing whether point falls inside or outside a complex polygon

Replies are listed 'Best First'.
Re^3: Determing whether point falls inside or outside a complex polygon
by pg (Canon) on Nov 08, 2004 at 17:23 UTC

    You are right ;-) However with one addition, if the point of insect is also the intersect of two line segments of the polygon, you have to be careful.