POV-Ray : Newsgroups : povray.advanced-users : Break out of main while (1) loop using #break directive in a sub-loop state= : Re: Break out of main while (1) loop using #break directive in a sub-loop s= Server Time
19 Apr 2024 21:41:17 EDT (-0400)
  Re: Break out of main while (1) loop using #break directive in a sub-loop s=  
From: Kenneth
Date: 17 Jan 2023 22:50:00
Message: <web.63c76c2d42c56c9c2eadabda6e066e29@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> wrote:

> >
> > "Although it is permissible to reference an entire array as a whole, you may
> > not reference just one dimension of a multi-dimensional array."
>
> You can kind-of do this in SDL, but only if you use arrays of arrays instead of
> multi-dimensional arrays. So, instead of
>
> #declare A = array[3][2];
>
> use
>
> #declare A = array[3];
> #for (I, 0, 2)
>  #declare A[I] = array[2];
> #end
>

That is very clever, and will go into my 'bag of tricks'. Thanks.


Post a reply to this message

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