in reply to OT: point inside polyhedron test
One approach is to consider drawing a line from your candidate point to infinity: then count the number of times it crosses the bounding lines of the shape. If the number of lines that it crosses is an odd number, then the point was inside the shape. (Infinity is any point outside the bounding box of the shape).
--Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: OT: point inside polyhedron test
by Dr. Mu (Hermit) on Feb 19, 2003 at 05:06 UTC | |
by dpuu (Chaplain) on Feb 19, 2003 at 19:00 UTC | |
by Dr. Mu (Hermit) on Feb 19, 2003 at 21:45 UTC | |
by dpuu (Chaplain) on Feb 20, 2003 at 04:45 UTC |