POV-Ray : Newsgroups : povray.general : joining objects for latter manipulation : Re: joining objects for latter manipulation Server Time
1 Aug 2024 18:25:23 EDT (-0400)
  Re: joining objects for latter manipulation  
From: Mike Raiford
Date: 15 Jun 2005 10:39:41
Message: <42b03dad$1@news.povray.org>
Andrej wrote:
> I would like to join spheres into a single object for easier manipulation 
> (rotation for example):
> 
> 
> OBJECT {BALLS =
> {
>  #declare Count=0;
>  #while (Count < 5)
>   sphere { <(-2+Count), Count, Count>, 1
>    pigment {  color rgb <0.4 0.8 0.8>}
>   }
>   #declare Count=Count+1;
>  #end
> }
> }; ROTATE BALLS <0 90 45> 
> 
> 

#declare BALLS = union
{
   #declare Count=0;
   #while (Count < 5)
    sphere { <(-2+Count), Count, Count>, 1
     pigment {  color rgb <0.4 0.8 0.8>}
    }
    #declare Count=Count+1;
   #end
}

object { BALLS rotate  <0 90 45> }
-- 
~Mike

Things! Billions of them!


Post a reply to this message

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