POV-Ray : Newsgroups : povray.general : Math r dumb-Ken r toopid : Re: Math r dumb-Ken r toopid Server Time
12 Aug 2024 11:22:59 EDT (-0400)
  Re: Math r dumb-Ken r toopid  
From: Gordon
Date: 20 Feb 1999 06:33:20
Message: <36ce9d80.0@news.povray.org>
Ken wrote in message <36CDEDD1.399182D7@pacbell.net>...
>PoD wrote:

>> 

>> Hi Ken,

>> Not sure I understand your problem.

>> Do you mean something like

>> 

>> #declare NextX = 0;

>> #while( NextX < 20 )

>>   #delare Scale = 1+rand(Seed);

>>   box{0,1 scale Scale}

>>   translate <NextX,0,0>

>>   #declare NextX = NextX + Scale

>> #end

>> 

>> PoD.

>

>I thought it might be accomplished in a way similar to this but never

>would have thought to increment the counter with the scale value.

>I will check it out and see what happens.

>

> Thank you !

>

>-- 

>Ken Tyler

>

>mailto://tylereng@pacbell.net


It might help if you don't think of NextX as a counter, but as a position. We get used
to using #while because there is no #for, but it is a more general loop than that.

Gordon
<gbe### [at] birdcameroncomau>


Post a reply to this message

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