POV-Ray : Newsgroups : povray.newusers : problem using rotate in a while loop : Re: problem using rotate in a while loop Server Time
31 Jul 2024 02:30:31 EDT (-0400)
  Re: problem using rotate in a while loop  
From: Warp
Date: 11 Feb 2003 05:52:06
Message: <3e48d5d6@news.povray.org>
Suso Banderas <sus### [at] susoorg> wrote:
> Oh I get it now.  POV-Ray really functions reverse of what I expected.
> Being a programmer, I was expecting it to keep track of what the box's
> previous rotational angle was on the last iteration of the while loop.

  It works pretty much like a programming language would.

  When you make a "#declare Object = box { ... }", that's a bit like
saying "struct Object { ... }" or "class Object { ... }" in C/C++.
When you make an instantiation of the box with "object { Object }", that's
like making an instantiation of the struct/class in C/C++, like
"Object obj;". If you now modify *this* instantiation it naturally doesn't
modify any other instantiation you may have of the same class.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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