POV-Ray : Newsgroups : povray.advanced-users : Implementation of dynamically resized array : Re: Implementation of dynamically resized array Server Time
19 Apr 2024 23:10:23 EDT (-0400)
  Re: Implementation of dynamically resized array  
From: jr
Date: 2 Nov 2018 19:10:00
Message: <web.5bdcd8293ab1e8e96427f7f90@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> I was restructuring some code, and wanted to take advantage of using the new
> array features.
>
> #local ToothPrismArray = array [1];
>
> #local ToothPrismArray [0] = <_RC, _RC>;
> #local ToothPrismArray [1] = RotatePoint (<_RC, 0>, -_HT);
> #local ToothPrismArray [2] = RotatePoint (<_RB, 0>, -_HT);
>
> When I get to the second line of element definitions, I get the old "Array
> subscript out of range" error.
>


should work if you get rid of the initial dimension, ie

#local ToothPrismArray = array;


regards, jr.


Post a reply to this message

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