"Bob Hughes" <per### [at] aolcom?subject=PoV-News:> wrote in message
news:39ba6ee0@news.povray.org...
> This is the pertinent portion:
>
> #declare I=0;
> #while (IT<=NRS)
> #declare T=(IT-1)*360/NRS;
> #declare T1=3.141590*(T-TH)/180;
> #declare X[I]=R*cos(T/5.729579)+150;
> #declare Y[I]=R*sin(T/5.729579)+100;
> #declare Z[I]=0;
> #declare VX[I]=-V*sin(T1);
> #declare VY[I]=V*cos(T1);
> #declare VZ[I]=0;
> #declare I=int(I+1);
> #end // IT
Here's the problem: The variables "IT" and "NRS" don't change inside the
#while loop, so you have an infinite loop, so "I" will increment beyond the
limits of your array.
-Dave
Post a reply to this message
|