POV-Ray : Newsgroups : povray.advanced-users : question Server Time
26 Nov 2024 17:32:41 EST (-0500)
  question (Message 1 to 2 of 2)  
From: Peter Ketting
Subject: question
Date: 22 Nov 1999 04:05:50
Message: <3839076e@news.povray.org>
All,

Is it possible to do an intersection with a union?
like:

intersection {
  sphere { <0, 0, 0>, 5 }
  union {
    ...
    place several objects here.
    ....
  }
}


Post a reply to this message

From: Ken
Subject: Re: question
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.