POV-Ray : Newsgroups : povray.advanced-users : Implementation of dynamically resized array : Implementation of dynamically resized array Server Time
23 Jun 2024 22:29:19 EDT (-0400)
  Implementation of dynamically resized array  
From: Bald Eagle
Date: 2 Nov 2018 18:45:01
Message: <web.5bdcd2b755af31a9765e06870@news.povray.org>
Hi all,

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.

Is there a trick to this?

Am I a (few) version(s) behind?
(Windows)
version 3.8.0-alpha.9606898.blahblahblah


Thanks


Post a reply to this message

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