POV-Ray : Newsgroups : povray.binaries.images : recursion problems ?? : Re: recursion problems ?? Server Time
20 Nov 2024 08:16:37 EST (-0500)
  Re: recursion problems ??  
From: Ryan Mooney
Date: 23 Sep 2001 02:36:46
Message: <3BAD8625.78FDA717@earthlink.net>
Oops =p

the macro:)

#macro Rec (current)     //define macro

sphere { <0,0,0>, 0.75 pigment {rgb
0.5}        //macro component
translate <0,current*0.125,0>
//squash by 0.125
rotate 55*current*z        //wrap the
compact line into spiral
 }

#if(current < Max-1)        //if current
< max recursion
Rec(current+1)        //recursion and
increment
#end        //if

#end        //mcro

Ryan Mooney wrote:

> new to macro, having problems... =[
> simple macro to make a spiral out of
> spheres...
> It does not want to go above 98 max.
> recursive level...
> Why... ??
>
> Q?
> How to get the spiral to extend to
> the edge... By means of the macro...
> ??
>
>   ------------------------------------
>  [Image]


Post a reply to this message

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