POV-Ray : Newsgroups : povray.general : Testing for intersection of two objects : Re: Testing for intersection of two objects Server Time
1 Aug 2024 04:15:21 EDT (-0400)
  Re: Testing for intersection of two objects  
From: Trevor G Quayle
Date: 25 Jul 2006 12:20:00
Message: <web.44c64433c08fcd85c150d4c10@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> NEWS wrote:
> > i check the bounding  of the intersection ... and not the intersection of 2
> > bounding ...
>
>    That doesn't tell whether the objects are intersecting or not,
> only if their bounding boxes are.
>
>    There's no reasonable way for POV-Ray to tell for sure if two
> objects are intersecting or not.

What's the disadvantage of what I suggested?  Instead of checking for the
intersecting of bounding boxes, check the min and max extents of a CSG
intersection.  The only odd part is when I test it, when there is no
intersection, the min-max is not zero, but a very large number, but this
should still be usable, basically check the min-max of a CSG intersection
vs the min-max of a CSG union.

-tgq


Post a reply to this message

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