|
|
I just came across a strange limitation when trying to use variable-substitution
in a function:
#declare VAR = <2,.7,.6>;
#declare MY_FUNCTION = function(x,y,z,a,b,c) {...body of function...}
Then, attempting to use dot-notation for VAR, within the function...
isosurface{
function{MY_FUNCTION(x,y,z,VAR.x,VAR.y,VAR.z)}
...
}
But this causes a fatal error:
"expected 'operand', vector function 'vector identifier' found instead"
I assumed that the dot-notation would work-- because the components of VAR are
all individual scalar quantities now.
I tried surrounding the individual VAR components with parentheses (to try and
'eliminate' their vector nature, similar to dot-operator use for colors when a
'non-color' value is needed) but that doesn't work either.
I'm curious to know the reason for this limitation.
Post a reply to this message
|
|