|
![](/i/fill.gif) |
In article <3fc4e81f@news.povray.org>, "Carl Hoff" <hof### [at] wt net> wrote:
> #declare P = function {x*x + y + z*z - 1}
>
> isosurface {
> function { P(x,y*(1.05-y/5),z) }
> ...
>
> Should P be the formula of a sphere? In which case shouldn't
> the function be x*x+y*y+z*z-1? If that's not a typo I'm really
> confused. Hmmm... ok after looking closer I see you are substituting
> in a y*y term for y when you call the function. But that leaves me
> wondering why you only scaled one of the y's?
That would expand to:
x*x + y*1.05 + y*y/5 + z*z - 1
Change the order to make what happens a little clearer:
x*x + y*y/5 + z*z - 1 + y*1.05
This is scaling the sphere along the y axis, and adjusting the radius
according to distance along the y axis.
> Is there a difference between these two as used in an isosurface?
No difference. However, I find it easier to adjust things when the
threshold is 0.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |