|
![](/i/fill.gif) |
Try just cos(radian(foo)), without the degree.
After you took the cosinus, you don't obtain an angle so you don't have to
convert back in degree.
Easier, in the script, replace "pas = 360/nombre" with "pas=2*pi/nombre"
web.422fa980547504b4e6ef12d50@news.povray.org...
> "bancquart.sebastien" <ban### [at] wanadoo fr> wrote:
>> Thanks for your advices.
>>
>> By the way, I understood my error : cos and sin function work in radian,
>> not
>> in degrees.
>> Modifying this in my script gives something much better, without any
>> intersections.
>
> Wrapping the sin() and cos() functions like degrees(cos(radians( foo )))
> blew the sphere spheres so far out they became stars. :-)
>
> I just figured out while loops though, maybe its beyond me for the moment.
>
> Heres an animgif of my fixing attempt. (no intersections though!)
>
--------------------------------------------------------------------------------
Post a reply to this message
|
![](/i/fill.gif) |