POV-Ray : Newsgroups : povray.advanced-users : Contain, bound, clip Server Time
2 Nov 2024 05:17:43 EDT (-0400)
  Contain, bound, clip (Message 1 to 3 of 3)  
From: Greg M  Johnson
Subject: Contain, bound, clip
Date: 3 Mar 2000 08:26:28
Message: <38BFBC8A.946FB33E@my-dejanews.com>
When should one use any of the above,  such as bounded_by ?

I'd never heard of "contained_by" until I got an error message
attempting caustics in 0.4...


Post a reply to this message

From: Bob Hughes
Subject: Re: Contain, bound, clip
Date: 3 Mar 2000 11:27:02
Message: <38bfe7d6@news.povray.org>
'bounded_by' is still going to be for manual bounding of objects and
'clipped_by' for clipping (cutting away) objects.  'contained_by' has apparently
been used to distinguish between the usual bounded_by usage so as not to confuse
it when creating a isosurface.  The reasoning beyond that is unclear to me
except that the terminology now means it is a container area of sorts instead of
just a ray trace boundary.

Bob

"Greg M. Johnson" <gre### [at] my-dejanewscom> wrote in message
news:38BFBC8A.946FB33E@my-dejanews.com...
| When should one use any of the above,  such as bounded_by ?
|
| I'd never heard of "contained_by" until I got an error message
| attempting caustics in 0.4...
|


Post a reply to this message

From: Nieminen Juha
Subject: Re: Contain, bound, clip
Date: 3 Mar 2000 13:07:52
Message: <38bfff78@news.povray.org>
Bob Hughes <omn### [at] hotmailcom?subject=pov-news:> wrote:
: 'contained_by' has apparently
: been used to distinguish between the usual bounded_by usage so as not to confuse
: it when creating a isosurface.  The reasoning beyond that is unclear to me

  bounded_by and contained_by work in a very different manner. They have
nothing to do with each other.

  bounded_by is used to speed up rendering. Ray intersection with an object
is tested only if the ray first hits its bounding object. The bounding object
doesn't define the shape of the object it's bounding (of course you can get
undesired 2D-screen-clipping of the object if the bounding object doesn't
surround it completely, but that's just a side-effect and not a wanted
feature; the object is still complete, povray just doesn't render it
correctly).
  bounded_by is NOT comparable with any CSG operation.

  contained_by is used exclusively in isosurfaces to determine the space where
the isosurface is calculated. It works more like intersection than bounded_by
since it actually affects the shape of the isosurface. Optionally it can be
made to work similarly to clipped_by.
  It, however, has a very concrete task: It tells the program where to start
sampling and where to end. It's a similar idea as with media containers.
bounded_by doesn't have this kind of task.

  clipped_by works like intersection, but it doesn't add any new surfaces to
the object. It actually changes the shape of the object and thus is a
completely different thing than bounded_by.


  They should not be confused together since they are completely different
things.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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