POV-Ray : Newsgroups : povray.unofficial.patches : alternate coordinate systems in iso.s. : Re: alternate coordinate systems in iso.s. Server Time
2 Sep 2024 18:20:18 EDT (-0400)
  Re: alternate coordinate systems in iso.s.  
From: Sigmund Kyrre Aas
Date: 24 Jan 2000 16:19:49
Message: <388CC119.E458B555@stud.ntnu.no>
I finally tried your functions, and they worked quite fine. Trouble is I
get a frayed surface near the y-axis, so I doubt I can use this for my
snail. Increasing accuracy doesn't work either.
Thanks, anyway. Bet I can use this for something else!

sig.

//Maple command:
//plot3d((1.2)^x * sin(y),x=-8..Pi,y=0..Pi,coords=spherical);

// spherical coords by Philippe Debar phi### [at] hotmailcom
#declare CylRadius=function{sqrt(x^2+z^2)}
#declare  Z = function{sqrt(x^2+y^2+z^2)}
#declare  X = function{atan2(z,x)}
#declare  Y = function{atan2(CylRadius(x,y,z),y)}

isosurface { 
    function { 
        (1.2)^X * sin(Y)-Z
    }
    accuracy .01
    max_trace 1
    threshold 0
    clipped_by {sphere {0,10}}
    pigment { rgb 1 } finish { specular .5 }
    rotate 0*y
}


Post a reply to this message

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