POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
10 Aug 2024 11:21:28 EDT (-0400)
  Re: The Language of POV-Ray  
From: Tor Olav Kristensen
Date: 9 Mar 2000 16:39:42
Message: <38C818FD.2181BD12@hotmail.com>
Hi again

Tor Olav Kristensen wrote:

> Hi
>
> But what if the loop control variable is a vector that is shared
> between several nested loops? (See my example macro below.)

...

>  #local Cntv = Nullv;
> ...

I forgot something: Nullv = <0, 0, 0>
So the above statement resets all 3 components of the counter vector.

I think that it sometimes is nice with a vectors as a counter variables,
because it makes it possible to write compact code where a needed
vector changes as a result of loop counts.

Tor Olav

mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

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