POV-Ray : Newsgroups : povray.advanced-users : Multiple clipped_by statements? Server Time
22 Dec 2024 17:32:12 EST (-0500)
  Multiple clipped_by statements? (Message 1 to 3 of 3)  
From: Mike Horvath
Subject: Multiple clipped_by statements?
Date: 24 Nov 2015 02:32:45
Message: <5654129d$1@news.povray.org>
Is it possible to have multiple clipped_by statements in an object? How 
do you combine multiple clipped_by objects into one?


Mike


Post a reply to this message

From: Le Forgeron
Subject: Re: Multiple clipped_by statements?
Date: 24 Nov 2015 02:36:19
Message: <56541373$1@news.povray.org>
Le 24/11/2015 08:33, Mike Horvath a écrit :
> Is it possible to have multiple clipped_by statements in an object? How
> do you combine multiple clipped_by objects into one?
>
>
> Mike

You can clip with an intersection or union, but from my memory of code, 
there is only even one pointer for clipped_by, so if the parser allow 
more than once, you would get, i would guess, either the first or the 
last one only.


Post a reply to this message

From: Alain
Subject: Re: Multiple clipped_by statements?
Date: 24 Nov 2015 14:05:05
Message: <5654b4e1$1@news.povray.org>
Le 15-11-24 02:33, Mike Horvath a écrit :
> Is it possible to have multiple clipped_by statements in an object? How
> do you combine multiple clipped_by objects into one?
>
>
> Mike

I don't think so.
Usualy, you use an union of several shapes when you want a clipped_by 
several shapes.

clipped_by{union{object{Object1}object{Object2}[...]}}

You may also predefine the union:
#declare Clipper=union{object{Object1}object{Object2}}
clipped_by{Clipper}


Alain


Post a reply to this message

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