POV-Ray : Newsgroups : povray.general : Is Basic language array to POV array possible? : Re: Is Basic language array to POV array possible? Server Time
9 Aug 2024 01:19:23 EDT (-0400)
  Re: Is Basic language array to POV array possible?  
From: Dave Blandston
Date: 9 Sep 2000 13:43:26
Message: <39ba76be@news.povray.org>
"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

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