POV-Ray : Newsgroups : povray.advanced-users : Multidimensional arrays : Re: Multidimensional arrays Server Time
16 Jun 2024 13:28:47 EDT (-0400)
  Re: Multidimensional arrays  
From: ABX
Date: 15 Oct 2003 09:41:48
Message: <84hqov0fh64rtkpfik2q6m82v07qc2j2k6@4ax.com>
On Wed, 15 Oct 2003 13:52:48 +0100, "Andrew Coppin" <orp### [at] btinternetcom>
wrote:
> Naturally enough, this is EXACTLY what I want to do... Why does this
> limitation exist? How do I get round it?

Instead of defining multidimensional array, define array of arrays:

#local Array1 = array[2][3]; // mutidimensional array

#local Array2 = array[2];
#local Array2[0] = array[3];
#local Array2[1] = array[3];

Now you can reference one dimension of array as well as whole array and each
element.

ABX


Post a reply to this message

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