POV-Ray : Newsgroups : povray.newusers : Only render intersections from list of objects : Re: Only render intersections from list of objects Server Time
14 May 2024 14:45:15 EDT (-0400)
  Re: Only render intersections from list of objects  
From: Warp
Date: 16 Apr 2014 15:05:08
Message: <534ed464@news.povray.org>
Le_Forgeron <jgr### [at] freefr> wrote:
> Le 16/04/2014 17:40, qox nous fit lire :
> > I can't think of a way to achieve this.
> > 
> > All my objects (let's say spheres) are in a file, that I can render with
> > 
> > union
> > {
> >    #include OBJECTS_FILE
> > }
> > 
> > But I'd like to render only intersections between 2 (or more) spheres.
> > 
> > intersection
> > {
> >    #include OBJECTS_FILE
> > }
> > wouldn't work since it renders the intersection bewteen ALL objects.
> > 
> > Can povray do that ?

> No. But I have a patch that can.

> It would be a interunion (or intermerge). Yet to be documented, but
> functional.

> interunion {
>  #include OBJECTS_FILE
>   range{ <2,-1> }
> }

For some reason I can't make heads or tails of either the question or
the answer. (Also, I haven't the slightest clue what the "<2,-1>" above
is supposed to signify.)

-- 
                                                          - Warp


Post a reply to this message

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