POV-Ray : Newsgroups : povray.beta-test : more function issues : Re: more function issues Server Time
5 Nov 2024 05:23:11 EST (-0500)
  Re: more function issues  
From: Warp
Date: 7 Sep 2001 10:31:20
Message: <3b98da38@news.povray.org>
Dennis Milller <dhm### [at] mediaonenet> wrote:
: Thanks. Does the addition of "x,y,z" in the new syntax change any aspect of
: the function and is it even required?

  I think you misunderstand. It's not like they thought "hey, we need to
convert the sphere function to pov3.5; how about adding 'x,y,z' just in case
and because it looks cool?".
  All the functions have the same form, that is, the 'x,y,z' space coordinates
where to calculate the function plus possibly some extra parameters which
define the shape (eg. the radius). The function could not calculate the correct
value if it doesn't have the x, y and z values (how else can it know where
to calculate?).
  And besides, this allows to make modifications to the sphere easily. Just
imagine what do these do: f_sphere(x^2,y,z,1), f_sphere(x,0,z,1), etc.

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

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