POV-Ray : Newsgroups : povray.advanced-users : Intersection Testing in #while loops. : Re: Intersection Testing in #while loops. Server Time
30 Jul 2024 04:20:59 EDT (-0400)
  Re: Intersection Testing in #while loops.  
From: Ron Parker
Date: 10 Mar 2000 16:01:19
Message: <38c9629f$1@news.povray.org>
On Fri, 10 Mar 2000 10:51:55 -0800, Ken wrote:
>
>If I create a group of objects with a while loop
[...]
>and then intersected my new object Thing with a plane
>
>intesection {
> object{ Thing }
>  plane {y,0 }
>}
>
>would the intersection testing be done only to those objects that the
>plane actually comes in contact with or would the intersection testing
>be done against every object in the object Thing ?

Only the object it comes in contact with, in this case, but only because
you picked such an easy plane.

POV computes the bounding box of the intersection by intersecting the
bounding boxes of its constituents.  If a plane is axis-aligned, as 
yours is, its bounding box is the half-space that would be considered
its "inside".  So the intersection of the two bounding boxes is the 
half of the union's bounding box that is inside the plane.

Had you intersected with plane {x+y,0}, however, this optimization would
not have happened.  You could still attempt to bound it manually.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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