POV-Ray : Newsgroups : povray.general : joining objects for latter manipulation : Re: joining objects for latter manipulation Server Time
1 Aug 2024 18:25:45 EDT (-0400)
  Re: joining objects for latter manipulation  
From: Mike Raiford
Date: 15 Jun 2005 11:59:47
Message: <42b05073$1@news.povray.org>
Andrej wrote:
>>object { BALLS rotate  <0 90 45> }
> 
> 
> Can you then multiply this object and position them into different places 
> (translation, repositioning)?
> 
> Like:
> 
> BALLS Bplanes[5];
> 
> #declare Count=0;
> #while (Count < 5)
>  Bplanes[Count]
>  {
>   NEWPOSITION <Count 0 0>
>   rotate  <0 20*Count 45>
>  }
>  #declare Count=Count+1;
> #end 
> 
> 

Just:

  #declare Count=0;
  #while (Count < 5)
    object { BALLS rotate <0 20*Count 45> }
    #declare Count=Count+1;
  #end

-- 
~Mike

Things! Billions of them!


Post a reply to this message

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