POV-Ray : Newsgroups : povray.general : Arrays : Re: Arrays Server Time
7 Aug 2024 19:26:46 EDT (-0400)
  Re: Arrays  
From: Ron Parker
Date: 24 Jul 2001 18:28:17
Message: <slrn9lrtk3.p12.ron.parker@fwi.com>
On Tue, 24 Jul 2001 18:15:39 -0400, Bill DeWitt wrote:
>
>    I think I may have just noticed my problem with arrays. I am sure I read
>it once but I just noticed that the POV-Ray docs claim that arrays can only
>be as large as array[5][x]. Is this true?!

I think you're misreading it.  The limitation involving the number 5 is
that arrays can have no more than 5 dimensions, so array[9][4] is okay,
but array[2][2][2][2][2][2] is not.

>    IOW, if I have a list of planetary data for 9 planets, listing their
>name, radius, mass and distance from sun, I have to rearrange it into a list
>of names, a list of masses, a list of radii and a list of distances? (I am
>doing this anyway to see if it solves my problems, but I am mad that for all
>this time I thought that I was just not understanding array initialization
>and reading)

Note that once you fill in one value in an array, every other value in the
array must be of the same type.  Name and mass might not be the same type.

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

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