|
English Italiano Deutsch |
|
Ring_Sphere |
|
Sphère en anneau syntaxe générale : object{ Ring_Sphere (Rmaj_H, Rmaj_V, Rmin_H, Rmin_V,
Number_of_Rings_horizontal,
Number_of_Rings_vertical)
texture{ ... ... }
} // end of object ------------------------
Ce qu'il faut remplir :Rmaj_H, Rmaj_V = rayon majeur horizontal et vertical des anneaux, Rmin_H, Rmin_V = rayon majeur horizontal et vertical des anneaux rayon majeur horizontal et vertical des anneaux. |
Exemple:
#include "shapes_lo.inc"
object{Ring_Sphere (1.00, 1.02, 0.025, 0.025, 12, 16)
texture { pigment{color <1,1,1>}
finish {ambient 0.1 diffuse 0.7
phong 1 reflection 0.25}
} // end of texture
scale <1,1,1>
rotate <-20,0,-7>
translate <0,1.00,0>
} // end of object --------------------------------- |
|
La macro en détail
Deux boucles tant que d'anneaux, chaque rayon est calculé par une fonction cosinus :
Voici quelques variations de cette macro :
|