POV-Ray : Newsgroups : povray.general : megapov question : megapov question Server Time
10 Aug 2024 09:15:30 EDT (-0400)
  megapov question  
From: hall
Date: 30 Jan 2000 10:52:18
Message: <38945e32@news.povray.org>
It seems to me the following two pieces of code should produce the same
result (they don't).
Can anyone tell me why? (I thought they should both be spheres, but code #1
makes a really odd
distorted shape)

code #1:

#declare x_val=function(x^2)
#declare y_val=function(y^2)
#declare z_val=function(z^2)
#declare end_val=function(x_val+y_val+z_val)
isosurface
{
 function{end_val}  threshold .75  sign 1
 pigment {rgb 1}
}

and

code #2:
#declare end_val=function(x^2+y^2+z^2)
isosurface
{
 function{end_val}  threshold .75  sign 1
 pigment {rgb 1}
}

thanks,

Quadhall
tre### [at] ww-interlinknet


Post a reply to this message

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