POV-Ray : Newsgroups : povray.binaries.images : return of the isodonut? ~65k : Re: return of the isodonut? ~65k Server Time
1 Oct 2024 18:27:38 EDT (-0400)
  Re: return of the isodonut? ~65k  
From: Quadhall
Date: 30 Jul 2000 20:41:46
Message: <3984cb4a@news.povray.org>
Moon47 wrote in message <3981D8B6.57F746D5@earthlink.net>...
>I would love to see the code for the iso...


well, this code's a bit sloppy and ugly, but here it is.....

#declare major=+2.00;
#declare minor=+0.35;
#declare dis=+0.55;
#declare freq=9;

#declare a = function{cos(atan2(z,x)*freq)*dis}
#declare b = function{sin(atan2(z,x)*freq)*dis}
#declare c = function{(sqrt(x^2+z^2)-major-a)}
#declare d = function{sqrt((y-b)^2+c^2)-minor}

//one
#declare one=
isosurface
{
 function {d}
 contained_by{sphere {0,4.0}}
 eval
 method 2
 threshold 0

 pigment{color rgb 1}
 finish {blinn .9 facets .3 reflection .95}
 photons {target reflection on}
}

object{one}


Post a reply to this message

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