POV-Ray : Newsgroups : povray.newusers : Only render intersections from list of objects : Re: Only render intersections from list of objects Server Time
13 May 2024 20:07:43 EDT (-0400)
  Re: Only render intersections from list of objects  
From: Le Forgeron
Date: 16 Apr 2014 14:15:34
Message: <534ec8c6$1@news.povray.org>
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> }
}


Post a reply to this message

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