POV-Ray : Newsgroups : povray.general : clone/duplicate of a union : Re: clone/duplicate of a union Server Time
26 Apr 2024 14:29:01 EDT (-0400)
  Re: clone/duplicate of a union  
From: Stephen
Date: 25 May 2018 09:49:24
Message: <5b081464$1@news.povray.org>
On 25/05/2018 13:16, Kima wrote:
> It is probably a ridiculous question, but imagine we have created a union as
> 
> #declare obj_u1 =
>      union {
>          obj1
>          obj2
>      }
> 
> how can we create clones of obj_u1 and apply different transformations?
> 
> For example, how can we transform three independent copies of obj_u1 as
> 
> translate obj_u1
> scale obj_u1
> rotate obj_u1
> 
> 
Once you have declared it. Call it by using:

object{ obj_u1

	rotate <a,b,c>
	scale <l,m,n>
	translate <x,y,z>
	}

Repeat as many times as you want with different transformations and 
textures.


-- 

Regards
     Stephen


Post a reply to this message

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