|
Italiano
Français Deutsch |
|
Ring_Sphere |
|
Ring Sphere general syntax: object{ Ring_Sphere (Rmaj_H, Rmaj_V, Rmin_H, Rmin_V,
Number_of_Rings_horizontal,
Number_of_Rings_vertical)
texture{ ... ... }
} // end of object ------------------------
What to fill in:Rmaj_H, Rmaj_V = major radius of the horizontal and vertical rings, Rmin_H, Rmin_V = minor radius of the horizontal and vertical rings and Number_of_Rings_horizontal, Number_of_Rings_vertical. |
Sample:
#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 ------------------------------------ |
|
Macro in detail
Two while loops of rings, each radius is calculated by cos function:
Here some variations of that macro:
|