POV-Ray : Newsgroups : povray.newusers : using arrays in functions : Re: using arrays in functions Server Time
29 Jul 2024 06:14:12 EDT (-0400)
  Re: using arrays in functions  
From: Christoph Hormann
Date: 30 May 2006 11:45:03
Message: <e5hp1l$mdg$1@chho.imagico.de>
stefan berke wrote:
> hi, is there any way of using an array like
> MAP[mZ][mX] = float in a function?
> 
> say:
>    #local fun = function(x,y,z) { map[z][x] }

No.

> i wanted to create an isosurface & pigments out of an array of heightdata.

Use an image_map/image_pattern pigment/pattern function.

Christoph

-- 
POV-Ray tutorials, include files, Landscape of the week:
http://www.imagico.de/ (Last updated 27 May. 2006)
MegaPOV with mechanics simulation: http://megapov.inetart.net/


Post a reply to this message

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