POV-Ray : Newsgroups : povray.general : Max_Intersections? : Re: Max_Intersections? Server Time
2 Nov 2024 13:20:31 EDT (-0400)
  Re: Max_Intersections?  
From: Peter Popov
Date: 12 Mar 2004 09:06:14
Message: <faf350pgmkpsilogmbs3qkejbth1307if2@4ax.com>
On Wed, 3 Mar 2004 18:50:46 +0100, "Tim Nikias v2.0" <tim.nikias (@)
nolights.de> wrote:

>Perhaps I'll just do some research on raytracing to find out why one would
>need more intersections. Thanks for the tutoring! :-)

IIRC the main need for storing an intersection stack arises from the
way CSG works. Basically to find out the intersection with a CSG
object you need to find the intersections with all its children (and
theirs... recursively). Once you have them, the intersection point of
the CSG objects is the first one among those of its children that is
inside all of them, the one in belongs to is not checked for precision
reasons. The inside test itself is either based on Jordan's theorem
(based on the evenness of the number of intersections from the ray's
origin to the point in question) or is object-specific, whichever is
faster.

Another use is object media. POV needs to know the point(s) of entry
and exit of a media container in order to be able to correctly perform
media sampling in the object's interior.

I hope I'm not talking rubbish, but IIRC at least CSG worker that way
in a raytracer I wrote a few years ago.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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