POV-Ray : Newsgroups : povray.newusers : extracting x,y,z values in a macro : Re: extracting x,y,z values in a macro Server Time
29 Jul 2024 22:25:03 EDT (-0400)
  Re: extracting x,y,z values in a macro  
From: Christoph Hormann
Date: 22 Jan 2005 04:35:01
Message: <cst6go$5mj$1@chho.imagico.de>
Max Ulbrich wrote:
> Hi,
> 
> I try to get a sum over an expression that contains data of an array.

As you already have been told elsewhere you have to understand the 
difference between render time functions and parse time code.

The difference is explained in:

http://www.povray.org/documentation/view/3.6.1/231/#s02_02_01_06_02

Since neither the loop parameters nor the array indices depend on the 
function parameters you can probably do what you are trying to do with a 
macro but the parameters of the macros are parse time variables, not 
render time ones.

Examples for the use of macros for generating functions can be found in 
the IsoCSG library:

http://www.tu-bs.de/%7Ey0013390/pov/ic/index.html


Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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