POV-Ray : Newsgroups : povray.unofficial.patches : Some more iso/function questions : Re: Some more iso/function questions Server Time
1 Sep 2024 20:19:03 EDT (-0400)
  Re: Some more iso/function questions  
From: Chris Huff
Date: 15 Nov 2000 05:30:33
Message: <chrishuff-B15F25.05304615112000@news.povray.org>
In article <3a121dd8@news.povray.org>, Ken Cecka <cec### [at] homecom> 
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] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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