|
![](/i/fill.gif) |
does this work for you?
camera {
location <-5,15,-10>
look_at 0
angle 45
}
light_source {
<-5,15,-10>
rgb 1
}
#local a = 5; //semimajor axis
#local b = 3; //semiminor axis
#local r = .5; //minor radius
#local n = 20;//number of spheres/accuracy of object
sphere_sweep {
cubic_spline
n+3,
#local i=0;
#while(i<=2*pi*(1+2/n))
<a*sin(i),0,b*cos(i)>, r
#local i=i+(2*pi/n);
#end
pigment { rgb y }
finish { phong 1 }
}
Regards Roman
Post a reply to this message
|
![](/i/fill.gif) |