Another "quick" isosurface doodle --an abstract shape with a
psuedo-weathered appearance. Thought the equations used might be of some
interest, so I am posting the code for this object below:
#declare spring=+3.00;
#declare major=+0.75;
#declare minor=+0.20;
#declare a = function{sqrt(x^2+z^2)-spring}
#declare b = function{atan2(z,x)*13}
#declare c = function{(sqrt(y^2+a^2)-major)}
#declare d = function{cos(b+atan2(y,a))+1}
#declare e = function{sqrt(c^2+d^2)-minor}
#declare pgmnt =
function
{
pigment
{
granite color_map { [0 color rgb 0] [1 color rgb 1] }
scale .333
warp{toroidal orientation <0,1,0> dist_exp 0 major_radius spring }
}
}
isosurface
{
function {e-.07*pgmnt}
contained_by{sphere {0,4.0}}
eval
method 2
max_gradient 7
threshold 0
pigment{color rgb 1}
finish{ambient .32}
}
Isosurfaces rule!
Quadhall
Post a reply to this message
Attachments:
Download 'plate_92.jpg' (43 KB)
Preview of image 'plate_92.jpg'
|