POV-Ray : Newsgroups : povray.beta-test : Arrays.inc : Arrays.inc Server Time
29 Jul 2024 12:26:33 EDT (-0400)
  Arrays.inc  
From: Richard
Date: 8 May 2002 15:20:57
Message: <3cd97a99@news.povray.org>
Arrays.inc has a typo.
arr[ should be array[

correct section of code reads
#macro Rand_Array_Item(Array, Stream)
   #if(dimensions(Array)=1)
      Array [floor(rand(Stream)*0.9999999*dimension_size(Array,1))]
   #else
      #error "The Rand_Array_Item() macro only works for 1D arrays."
   #end
#end


Post a reply to this message

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