POV-Ray : Newsgroups : povray.general : Array Question : Re: Array Question Server Time
9 Aug 2024 17:20:03 EDT (-0400)
  Re: Array Question  
From: Chris S 
Date: 2 Jun 2000 11:12:43
Message: <3937ceeb@news.povray.org>
error:  no matching } in sphere_sweep, < found instead

/////

#declare Rand01 = seed(34747);
#macro Tree_Root(X,Y,Z,R,L,Next)
    #declare counter=0;
    sphere_sweep {
      linear_sphere_sweep,
      10,
      #while(Next>0)
        <X,Y,Z>,R
        #declare R=R/1.05;
        #local X=X-rand(Rand01)*2;
        #local Y=Y-rand(Rand01);
        #local Z=Z-rand(Rand01)*2;
        #declare Next=Next-.1;
        #declare counter=counter+1;
     #end
    }
#end
union{
Tree_Root(0,0,0,2,1,1)
pigment{color rgb <1,0,0>}}

//////

-Chris-

David Fontaine <dav### [at] faricynet> wrote in message
news:39372DF5.AAB80A80@faricy.net...
> "Chris S." wrote:
>
> > I have a while loop which runs through numbers calculating a coordinate
and
> > radius of a sphere.  What I'm trying to do is have these coordinates and
> > radii be entered into a sphere_sweep in order to serve as its sphere
list.
> > I tried placing the while loop in the sphere_sweep code but received an
> > error message.  Is there any way to do this with an array?  I'm
> > inexperienced with arrays so any help would be appreciated.
> >
> > Thanks, I only try bothering the group as a last resort:)
>
> Hmm, that should work... What's the message? and check your syntax :-)
>
> --
> David Fontaine     <dav### [at] faricynet>     ICQ 55354965
> Please visit my website: http://www.faricy.net/~davidf/
>
>


Post a reply to this message

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