Re: mathmatical question..

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jiri's Reply has SOME merit mathmatically.
However it is only 50% accurate.

EXAMPLE

  ________
 |  _     |
 | / |    |
 |/  |    |
 .   |____|
/|\
 |
[point]

If you take this polygon.
You click to where his check comes exactly
across the point. This would cause an odd count
and still be inside the polygon.

The easiest way is David Gay's suggestion.

Next!!! to do it mathmatically you would
have break the polygon into triangles.
Then you could use Jiri's idea accurately.
You would check each triangle as a seperate
polygon. If it is within or on any of the
triangles thin it is within or on the polygon.

Triangled view

  ________
 |  /|   /|
 | / |  / |
 |/  | /  |
     |/___|


--Lucius Lamar Hilley III
--  E-mail at luciuslhilleyiii at juno.com
--  I support transferring of files less than 60K.
--  I can Decode both UU and Base64 format.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu