|
![](/i/fill.gif) |
"Marc Roth" <mar### [at] rothconsult com> wrote in message
news:40460c66@news.povray.org...
> Jaap Frank wrote: [..]
> why don't you use a two-dimensional instead of asigning
> one array to the other?
> #declare A = array[2][2];
> this works well for me. but maybe i misunderstood you...
> bye,
> Marc
I've simplified the problem to show what I mean, but in reality my arrays
are build that way in order to be able to transfer parts of my arrays to a
macro that uses only a part of the total array. Like #declare T=B[0]; in
my example.
I've to test if the array value already exists to prefent
dubbel calculations.
This is by the way the method to put different kind of variables in one
array, so you can pass lots of different things in one array to a macro:
#declare A = array[2] { 2.05, 3.0058}
#declare B = array[2] { <1,2,3>, <4,5,6>}
#declare C = array[2]
#declare C[0] = A;
#declare C[1] = B;
#declare F =C[0][1] // Is a float
#declare V = C[1][0] // Is a vector
Thanks for your reaction,
Jaap Frank
Post a reply to this message
|
![](/i/fill.gif) |