|
![](/i/fill.gif) |
"Roman Reiner" <lim### [at] gmx de> wrote:
> 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
Tried the above and as is, it looks good but then I tried the following
variation...
camera {
location <0,0,-10>
look_at 0
}
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 }
rotate <-90,0,0>
}
Is there some kind of distortion happening here or am I seeing things. I
really need an accurate and consistant shape.
tgl
Post a reply to this message
|
![](/i/fill.gif) |