POV-Ray : Newsgroups : povray.advanced-users : question : Re: question Server Time
2 Nov 2024 09:20:43 EDT (-0400)
  Re: question  
From: Ken
Date: 22 Nov 1999 04:11:37
Message: <38390876.FE05D8AC@pacbell.net>
Peter Ketting wrote:
> 
> All,
> 
> Is it possible to do an intersection with a union?
> like:
> 
> intersection {
>   sphere { <0, 0, 0>, 5 }
>   union {
>     ...
>     place several objects here.
>     ....
>   }
> }

Yes ! That is called CSG nesting and is used all the time in CSG operations.
You can combine unions, intersections, merges, and differences all in one
operation as well as adding a clipped by to any part of it. It takes a bit
of planning on your part so that it will work correctly but that is up to
you to figure out.

-- 
Ken Tyler -  1200+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

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