POV-Ray : Newsgroups : povray.documentation.inbuilt : Mesh2 and the inside() function : Re: Mesh2 and the inside() function Server Time
18 Apr 2024 20:13:01 EDT (-0400)
  Re: Mesh2 and the inside() function  
From: Thorsten Froehlich
Date: 23 Jan 2005 10:12:31
Message: <41f3bedf$1@news.povray.org>
In article <web.41f3a5368c1cfb422ff34a90@news.povray.org> , "Tom York" 
<alp### [at] zubenelgenubi34spcom> wrote:

> The inside() function will still report a non-solid object error when given
> an object identifier for a mesh2 whether it has inside_vector defined or
> not.

As 2.4.2.3.1 Solid Mesh points out, the inside_vector is there to allow you
to use CSG with meshes.  It also explains to you why POV-Ray needs the
inside-vector for that.  If you follow the second paragraph in that section
you can work out why inside() cannot benefit from this: It does not shoot a
ray, all it can do is see if the point is inside or not, and for that
obviously more is needed than knowing which side of the mess is inside and
which one is outside (especially if the mesh is not closed).

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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