|
 |
In article <3a121dd8@news.povray.org>, Ken Cecka <cec### [at] home com>
wrote:
> #declare fn_x = function {x}
> #declare fn_y = function {y}
> #declare fn_z = function {z}
Maybe a problem with single-token functions...try using "0+x", "1*y",
etc...seems unlikely, though.
> #declare fn_sphere = function {fn_x^2 + fn_y^2 + fn_z^2 - 1}
And always use the parameter list. Two reasons: when you can't see their
declarations, fn_x, fn_y, and fn_z look like constants, not functions,
and function calls don't always work properly without them.
#declare fn_sphere =
function {fn_x(x,y,z)^2 + fn_y(x,y,z)^2 + fn_z(x,y,z)^2 - 1}
--
Christopher James Huff
Personal: chr### [at] mac com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag povray org, http://tag.povray.org/
<><
Post a reply to this message
|
 |