POV-Ray : Newsgroups : povray.advanced-users : Local variables in a function : Re: Local variables in a function Server Time
6 Oct 2024 13:34:55 EDT (-0400)
  Re: Local variables in a function  
From: bugman
Date: 16 Jul 2006 05:15:01
Message: <web.44ba026515c4a01e7acd794a0@news.povray.org>
OK, I have a slightly different question. Is there any way to extract an
array element in a function? For example:

#declare xlist=array[3] {5.5,2.1,7.8};
#declare getx=function(i) {xlist[int(i-1)]};


Post a reply to this message

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