POV-Ray : Newsgroups : povray.general : Arrays : Arrays Server Time
2 Nov 2024 03:16:44 EDT (-0400)
  Arrays  
From: Felbrigg
Date: 2 Jun 2004 12:37:49
Message: <40be025d$1@news.povray.org>
Dumb question I think but I'm puzzled.  It's my first use of arrays

I'm trying to create an array of variable size but when I try to use any
elements it bombs telling me the array is not initialised.  What am I mising
?


#declare Iterations = 20;
#declare row1 = array[Iterations];
#declare row2 = array[Iterations];

#declare loop = 0;
#while(loop < Iterations)
        row1[loop] = <0,0,0>;    // errors here??????!!!??????
        row2[loop] = <0,0,0>;
        #declare loop = loop + 1;
#end


Post a reply to this message

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