POV-Ray : Newsgroups : povray.general : Types of datas in array : Types of datas in array Server Time
25 Apr 2024 04:30:37 EDT (-0400)
  Types of datas in array  
From: kurtz le pirate
Date: 23 Sep 2018 05:02:29
Message: <5ba756a5$1@news.povray.org>
Hi,

I have declared this simple array :
   #declare MyArray  = array[n][3];

Then, i put some value on it :

   #declare MyArray[i][0] = 1.23456; float is OK
   #declare MyArray[i][1] = int(rand(alea)); integer is OK
   #declare MyArray[i][2] = rgb <a,b,c>; color not accepted.
                                         float required.

So, *all* the elements of the array must be of the *same type* ?
By design ?


regards
-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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