|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> inside a "function" block the language used is
> completely separate and distinct from the SDL. It has nothing to do
> with the SDL.
>
> Your #declare lines are SDL and thus are *not* parsed as part of your
> function. They are evaluated as SDL.
Do you mean that you cannot #declare temporary variables in a function?
#declare densityfunc = function( px, py, pz) {
#declare pxVal = px;
#declare pyVal = py;
atan2(pyVal, pxVal)
}
You can only use the values directly?
#declare densityfunc = function( px, py, pz) {
atan2(py, px)
}
Post a reply to this message
|
![](/i/fill.gif) |