POV-Ray : Newsgroups : povray.advanced-users : Directly accessing array value in array of arrays (Part 2) : Directly accessing array value in array of arrays (Part 2) Server Time
18 Apr 2024 08:14:07 EDT (-0400)
   Directly accessing array value in array of arrays (Part 2)  
From: Bald Eagle
Date: 26 Aug 2018 19:25:00
Message: <web.5b83362ac09bb9a8458c7afe0@news.povray.org>
I tracked down my old thread, but no help.

http://news.povray.org/povray.advanced-users/thread/%3Cweb.58e6aa331b66056880403a200%40news.povray.org%3E/

I have a 2D array, and I want to have that array be a collection of other 2D
arrays.

Is that allowed?

How do I access, or more importantly assign, uninitialized "internal" 2D array
elements?

#declare Array1 = array [4][4];

#declare Array2 = array [4][4];

Partially fill Array 2 with some values.

#declare Array1 [2][3] = Array2;

So far so good - but now I need to get to the "array formerly known as Array2 ",
element [0][2] which is INSIDE of Array1 [2][3]

#declare Array1[2][3][0][2] = somevalue makes the POV-Ray parser cry.

I'm none to happy about it either.

Advice?  Solution(s)?


Post a reply to this message

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