Bugfix in search_for_outside_edge routine.
[voro++.git] / trunk / examples / walls / torus.pov
blob95cb5137f1123981e7bb73c4ade6f623ea255058
1 #version 3.6;
3 // Increase the trace level for more accurate reflections
4 global_settings {
5 max_trace_level 64
8 // Right-handed coordinate system in which the z-axis points upwards
9 camera {
10 location <0,-40,34>
11 sky z
12 right -0.4*x*image_width/image_height
13 up 0.4*z
14 look_at <0,0,-1.31>
17 // White background
18 background{rgb 1}
20 // Two lights with slightly different colors
21 light_source{<-16,-20,43> color rgb <0.72,0.69,0.69>}
22 light_source{<30,-15,12> color rgb <0.34,0.37,0.37>}
24 // Radius of the Voronoi cell network, and the particle radius
25 #declare r=0.06;
26 #declare s=0.5;
28 // Particles
29 union{
30 #include "torus_p.pov"
31 pigment{rgb 0.97}
32 finish{reflection 0.1 ambient 0.30 specular 0.3}
35 // Voronoi cells, using a radial pigment map
36 union{
37 #include "torus_v.pov"
38 pigment{radial pigment_map {
39 [0 rgb <0.5,0.7,1>]
40 [0.25 rgb <0.38,0.82,0.92>]
41 [0.5 rgb <0.5,0.7,1>]
42 [0.75 rgb <0.65,0.4,1>]
43 [1 rgb <0.5,0.7,1>]}
44 rotate <270,0,0>}
45 finish{specular 0.3 ambient 0.3 reflection 0.1}