One technique that I've seen used is a raster method, starting at the upper left corner of your bounding box (assuming that point is outside the object), you draw an imaginary line from the upper left corner to the upper right corner, counting the number of times the imaginary line you are drawing crosses the lines that make up the object, at any point along the line if that count is an odd number, you are inside the object, if it is an even number you are outside the object.
In reply to Re: OT: point inside polyhedron test
by jasonk
in thread OT: point inside polyhedron test
by stu96art
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |