forked from rlabduke/MolProbity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_h.pov
109 lines (91 loc) · 1.46 KB
/
add_h.pov
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#include "colors.inc"
#include "textures.inc"
background { color rgb 0 }
camera {
up <0,1,0>
right <1,0,0>
location <0, 0, -25>
look_at <0, 0, 0>
rotate <0,-30,0>
}
#declare BOND_TX = texture {
pigment { color rgb 0.35 }
finish {
ambient 0.25
diffuse 0.7
specular 0.5
roughness 0.01
}
}
#declare CARBON_TX = texture {
pigment { color rgb 0.7 }
finish {
ambient 0.25
diffuse 0.7
specular 0.5
roughness 0.01
}
}
#declare H_TX = texture {
pigment { color rgb <.8,1,.8> }
finish {
ambient 0.25
diffuse 0.7
specular 0.5
roughness 0.01
}
}
// The carbon atom
union {
sphere {
<0,0,0>, 4
texture { CARBON_TX }
}
cylinder {
<0,0,0>, <0,-30,0>, 1
texture { BOND_TX }
}
// No translation
}
// H atom 1
union {
sphere {
<0,0,-10>, 2
texture { H_TX }
}
cylinder {
<0,0,0>, <0,0,-10>, 1
texture { BOND_TX }
}
rotate <20,0,0> // Elevation
}
// H atom 2
union {
sphere {
<0,0,-10>, 2
texture { H_TX }
}
cylinder {
<0,0,0>, <0,0,-10>, 1
texture { BOND_TX }
}
rotate <20,0,0> // Elevation
rotate <0,-120,0>
}
// H atom 3
union {
sphere {
<0,0,-10>, 2
texture { H_TX }
}
cylinder {
<0,0,0>, <0,0,-10>, 1
texture { BOND_TX }
}
rotate <20,0,0> // Elevation
rotate <0,120,0>
}
light_source {
<20,10,-20>
color White
}