File: o_shapesq.pov

package info (click to toggle)
povray 1%3A3.7.0.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 147,232 kB
  • sloc: cpp: 845,011; ansic: 122,118; sh: 34,204; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,389; cs: 879; awk: 590; perl: 245; xml: 95
file content (281 lines) | stat: -rw-r--r-- 7,398 bytes parent folder | download | duplicates (7)
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
// This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
// letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.

// Persistence of Vision Ray Tracer Scene Description File
// File:  o_shapesq_.pov
// Vers: 3.5
// Desc: Render via o_shapesq.ini,
//       generates html files and images for all the
//       shapes in shapesq.inc
// Date: 2001/08/06
// Auth: Ingo Janssen
#version 3.6;
global_settings { 
  assumed_gamma 1.0
}

#include "colors.inc"
#include "shapes.inc"
#include "shapesq.inc"
#include "html_gen.inc"
#declare Generate_HTML=yes;
#declare Generate_Images=yes;

// all shape names extracted from shapesq.inc,
// as strings for the generation of the html-files
// and as identfiers for the generation of the images.
#declare str_Arr=array[22] {
//poly
 "Glob_5", "Twin_Glob", "Sinsurf",
//quartic
 "Bicorn", "Crossed_Trough", "Cubic_Cylinder", "Cubic_Saddle_1",
 "Devils_Curve", "Folium", "Helix", "Hyperbolic_Torus_40_12", "Lemniscate",
 "Quartic_Loop_1", "Monkey_Saddle", "Parabolic_Torus_40_12", "Piriform", "Quartic_Paraboloid",
 "Quartic_Cylinder", "Steiner_Surface", "Torus_40_12", "Witch_Hat",
//object
 "Helix_1",
}
#declare Arr=array[22] {
//poly
 Glob_5, Twin_Glob, Sinsurf,
//quartic
 Bicorn, Crossed_Trough, Cubic_Cylinder, Cubic_Saddle_1,
 Devils_Curve, Folium, Helix, Hyperbolic_Torus_40_12, Lemniscate,
 Quartic_Loop_1, Monkey_Saddle, Parabolic_Torus_40_12, Piriform, Quartic_Paraboloid,
 Quartic_Cylinder, Steiner_Surface, Torus_40_12, Witch_Hat,
//object
 Helix_1,
}


#if (Generate_HTML)
   #if (clock=0)                         // generate the html-files for showing the images in.
      #declare FromFileName="shapesq.inc"   // the name of the include file the data came from.
      #declare OutName="o_shapesq"          // the OutName should match with Output_File_Name in the ini-file!!!!
      #declare Keyword="object"           // the stuff represented in the array: texture, pigment, material, color etc.
      #declare DataArray=str_Arr    // the array containing the strings of identifiers
      #declare NumPicHorizonal=3;        // the amount of images per row in the table
      #declare NumPicVertical=2;         // the amount of images per collumn in the table
      #declare IW=image_width;           // the dimesions of the image, these are set in the ini-file!
      #declare IH=image_height;
      #declare Comment=""
      HTMLgen(FromFileName, OutName, Keyword, DataArray, NumPicHorizonal, NumPicVertical, IW, IH, Comment)
   #end
#end

#if(Generate_Images)
   #switch(frame_number-1)
      #case(0)
         object {
            Arr[frame_number-1]
            sturm
            rotate <0,0,-90> 
            rotate <0,25,0>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(1)
         object {
            Arr[frame_number-1]
            sturm
            rotate <0,25,0>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(2)
         object {
            Arr[frame_number-1]
            sturm
            rotate <0,55,0>
            rotate <0,0,20>
            translate <0,-3,10>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(3)
         object {
            Arr[frame_number-1]
            sturm
            translate <0,0,-2>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(4)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,0,90>
            rotate<0,65,0>
            translate <0,-1,5>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(5)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,0,-90>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(6)
         object {
            Arr[frame_number-1]
            sturm
            rotate<90,55,0>
            translate <0,-5,20>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(7)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,0,0>
            translate <0,-2.5,5>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(8)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,-105,0>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(9)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,33,0>
            translate <0,-1,2>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(10)
         object {
            Arr[frame_number-1]
            sturm
            rotate<33,33,0>
            translate <0,-30,125>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(11)
         object {
            Arr[frame_number-1]
            sturm
            rotate<33,33,0>
            translate <0,1,-2>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(12)
         object {
            Arr[frame_number-1]
            sturm
            rotate<33,0,45>
            translate <-1,-1,2>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(13)
         object {
            Arr[frame_number-1]
            sturm
            rotate<10,180,0>
            translate <-1,-5,20>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(14)
         object {
            Arr[frame_number-1]
            sturm
            rotate<10,180,0>
            translate <-1,-20,50>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(15)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,-150,0>
            translate <0.5,0.5,-2>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(16)
         object {
            Arr[frame_number-1]
            sturm
            rotate<0,0,0>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(17)
         object {
            Arr[frame_number-1]
            sturm
            pigment {rgb <1,1,1>}
         }
      #break
      #case(18)
         object {
            Arr[frame_number-1]
            sturm
            rotate <1,1,1>
            translate <0,1,-3>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(19)
         object {
            Arr[frame_number-1]
            sturm
            rotate <-45,1,1>
            translate <0,-11,30>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(20)
         object {
            Arr[frame_number-1]
            sturm
            rotate <-45,-180,1>
            pigment {rgb <1,1,1>}
         }
      #break
      #case(21)
         object {
            Arr[frame_number-1]
            sturm
            rotate <15,33,1>
            translate <-0.5,0,2>
            pigment {rgb <1,1,1>}
         }
      #break
   #end

   camera {
     right x*image_width/image_height
     location  <0,2,-6>
     look_at   <0,0,0>
     angle 35
   }
   
   light_source {<500,500,-500> rgb 1}
   light_source {<-500,500,-500> rgb <0.1,0.1,0.3> shadowless}
   light_source {<3,3,-3> rgb <0.5,0.4,0.4> shadowless}

   sky_sphere {
      pigment {
         planar
         color_map { [0.0 color blue 0.5] [1.0 color rgb <0.7,0.7,1.0>] }
      }
   }
#end