POV-Ray : Newsgroups : povray.advanced-users : Multidimensional arrays : Re: Multidimensional arrays Server Time
4 May 2024 17:18:13 EDT (-0400)
  Re: Multidimensional arrays  
From: Andrew Coppin
Date: 15 Oct 2003 11:02:46
Message: <3f8d6196@news.povray.org>
> > 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.

Curiose... That should be in the docs!

Thanks.
Andrew.


Post a reply to this message

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