Home
- POV-Ray Tutorial
Loops in POV-Ray
1. For + While
Comparison
2. Linear
Transformations
3. Circular
Transformations
4. Moebius etc.
5. Screws
& Spirals
>6. Twisting
Spirals
7. Snails
& Ammonites
8. Spherical Spirals 1
9. Spherical Spirals 2
10. Fibonacci Spirals
- Download
|
Loops and Twisting Spirals
In the last samples we mostly used spheres. If we use ellipsoids instead then
we win the possibility to turn them around in a Moebius like way.
|
First a spiral made with ellipsoides:
//-------------------------------------
#declare Ball =
sphere{ <0,0,0>,0.45
scale <0.7,1.5,1> // !!!
texture{
pigment{
color rgb<1,0.6,0>}
finish { phong 1}}}
//the rest like in the previous sample! |
|
|
Now we twist these ellipsoids around their way:
//------------------------------------
...
#while (Nr< EndNr)
object{Ball
rotate <0,0,Nr*0.5> // !!!
translate<Radius0+Nr*D,0,0>
rotate<0,Nr * 360/N_p_rev ,0>}
#declare Nr = Nr+1; // next Nr
...
//------------------------------------ |
|
|
Twisting stronger we see what we get:
- A new strange live form?
//------------------------------------
...
#while (Nr< EndNr)
object{Ball
rotate <0,0,Nr*3.5> // !!!
translate<Radius0+Nr*D,0,0>
rotate<0,Nr * 360/N_p_rev ,0>}
#declare Nr = Nr+1; // next Nr
...
//------------------------------------ |
|
|
|