POV-Ray : Newsgroups : povray.general : inside_vector ??? : Re: inside_vector ??? Server Time
5 Aug 2024 20:19:23 EDT (-0400)
  Re: inside_vector ???  
From: Slime
Date: 5 Sep 2002 16:46:04
Message: <3d77c28c$1@news.povray.org>
> (How could POV-Ray determine if some point is inside
> the mesh or not using the information that another point is inside it?)


To determine if point A is inside the mesh, with the information that point
B *is*, shoot a ray from point A to point B, counting the number of times it
intersects the mesh. If it intersects an even number of times (counting 0 as
even), then A is inside the mesh.

 - Slime
[ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.