Re: CCL:Inside or outside of a polyhedron
Alexander Golbraikh wrote:
:
:
:
: Take any ray beginning at the given point. Count the number of
: points of intersection of this ray with polyhedron surface. If it is
: even, then the point is outside the polyhedron, if it is odd, then inside.
: One precaution: the ray may slide on some edges of the polyhedron.
:
: Best regards,
: Alexander Golbraikh
:
:
^ /
|/
< As you say, the ray may slide. The "o" point at the
left is
|\ outside the "polyhedron" yet passes through the
polyhedron
| \ surface only once if you send the ray only through the vertices
o \ defined by... say the Calphas of a protein.
-Brian
--
=============================================================================
| .---------.| Brian W. Beck | E-mail Addresses: |
|/\ | || Biochem/Biophysics | brian ( ( at ) ) bert.chem.wsu.edu
|
|| \\ WSU || Washington St. Univ| brian_beck ( ( at ) ) wsu.edu
|
|\ - *|| 206 Fulmer | URL http://elmo.chem.wsu.edu/~brian |
| | || Pullman, WA, USA | VOICE (509) 335-4083 |
| \___________|| 99164-4660 | FAX (509) 335-9688 |
=============================================================================