File: Shear_Transform.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 (486 lines) | stat: -rw-r--r-- 21,776 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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
// Insert menu illustration scene "Random.pov"
// Author Friedrich A. Lohmueller, June-2012 
// update Feb-2013
#version 3.7;
global_settings{ assumed_gamma 1.0 } 

#default{ finish{ ambient 0.1 diffuse 0.9 }}
#include "shapes.inc"
#include "shapes2.inc"
#include "colors.inc"
#include "textures.inc"
#include "stones.inc"
#include "glass.inc"
#include "transforms.inc"
#include "math.inc"
#include "functions.inc"
// #while + #for loops, sphere_sweep, spline curves

#declare In_Path  = "60 - Transformations/"

  //#declare Typ =13; // for tests

#switch (Typ)  //----------------------------------------------------------
// 60 - Transformations//
#case(10)  #declare Txt_Path="10 - matrix shear x to y.txt" #break
#case(11)  #declare Txt_Path="11 - matrix shear x to z.txt" #break
#case(12)  #declare Txt_Path="12 - matrix shear y to x.txt" #break
#case(13)  #declare Txt_Path="13 - matrix shear y to z.txt" #break
#case(14)  #declare Txt_Path="14 - matrix shear z to x.txt" #break
#case(15)  #declare Txt_Path="15 - matrix shear z to y.txt" #break

#case(20)  #declare Txt_Path="20 - Shear_Trans example.txt" #break
#case(21)  #declare Txt_Path="21 - Matrix_Trans example.txt" #break
#case(22)  #declare Txt_Path="22 - Axial_Scale_Trans.txt" #break
#case(23)  #declare Txt_Path="23 - Rotate_Around_Trans.txt" #break
#case(24)  #declare Txt_Path="24 - Axis_Rotate_Trans.txt" #break
#case(25)  #declare Txt_Path="25 - Reorient_Trans.txt" #break
#case(26)  #declare Txt_Path="26 - vaxis_rotate.txt" #break
#case(27)  #declare Txt_Path="27 - vrotate.txt" #break

#end // of '#switch (Typ)' ------------------------------------------------
//-------------------------------------------------------------------------

//---------------------------


// sun -------------------------------------------------------------------
light_source{<-1500,2500,-2500> color White}
// sky -------------------------------------------------------------------
sky_sphere{ pigment{ gradient <0,1,0>
                     color_map{ [0   color rgb<1,1,1>         ]//White
                                [0.4 color rgb<0.14,0.14,0.56>*0.7]//~Navy
                                [0.6 color rgb<0.14,0.14,0.56>*0.7]//~Navy
                                [1.0 color rgb<1,1,1>         ]//White
                              }
                     scale 2 }
           } // end of sky_sphere
//------------------------------------------------------------------------

//------------------------------ the Axes --------------------------------
//------------------------------------------------------------------------
#macro Axis__( AxisLen, Dark_Texture,Light_Texture,Scale)
 union{
    cylinder { <0,-AxisLen,0>,<0,AxisLen,0>,0.05
               texture{checker texture{Dark_Texture }
                               texture{Light_Texture}
                       translate<0.1,0,0.1>}
             }
    cone{<0,0,0>,0.25,<0,1,0>,0 scale Scale translate <0,AxisLen,0>
          texture{Dark_Texture}
         }
     } // end of union
#end // of macro "Axis()"
//------------------------------------------------------------------------
#macro AxisXYZ_( AxisLenX, AxisLenY, AxisLenZ, Tex_Dark, Tex_Light,
                 Rot_X,Rot_Y, ScaleX,ScaleY,ScaleZ)
//--------------------- drawing of 3 Axes --------------------------------

union{
#if (AxisLenX != 0)
 object { Axis__(AxisLenX, Tex_Dark, Tex_Light, ScaleX)   rotate< 0,0,-90>}// x-Axis
 text   { ttf "arial.ttf",  "x",  0.15,  0  texture{Tex_Dark}
         rotate<Rot_X,Rot_Y,0> scale ScaleX translate <AxisLenX+0.05,0.3,-0.10> no_shadow}
#end // of #if
#if (AxisLenY != 0)
 object { Axis__(AxisLenY, Tex_Dark, Tex_Light,ScaleY)   rotate< 0,0,  0>}// y-Axis
 text   { ttf "arial.ttf",  "y",  0.15,  0  texture{Tex_Dark}
          rotate<Rot_X,0,0> scale ScaleY translate <-0.55,AxisLenY+0.15,-0.20> rotate<0,Rot_Y,0> no_shadow}
#end // of #if
#if (AxisLenZ != 0)
 object { Axis__(AxisLenZ, Tex_Dark, Tex_Light,ScaleY)   rotate<90,0,  0>}// z-Axis
 text   { ttf "arial.ttf",  "z",  0.15,  0  texture{Tex_Dark}
          rotate<Rot_X,Rot_Y,0> scale ScaleZ translate <-0.35,0.3,AxisLenZ+0.10> no_shadow}
#end // of #if
} // end of union
#end// of macro "AxisXYZ( ... )"
//------------------------------------------------------------------------
#declare T_Dark  =
texture {
 pigment{ color rgb<1,0.45,0>}
 finish { phong 1}
}
#declare T_Light =
texture {
 pigment{ color rgb<1,1,1>}
 finish { phong 1}
}
//------------------------------------------------------------------------
// ground -----------------------------------------------------------------
//---------------------------------<<< settings of squared plane dimensions
#declare RasterScale = 1.0;
#declare RasterHalfLine  = 0.025;
#declare RasterHalfLineZ = 0.025;
//-------------------------------------------------------------------------
#macro Raster(RScale, HLine)
       pigment{ gradient x scale RScale
                color_map{[0.000   color rgbt<1,1,1,0>*0.6]
                          [0+HLine color rgbt<1,1,1,0>*0.6]
                          [0+HLine color rgbt<1,1,1,1>]
                          [1-HLine color rgbt<1,1,1,1>]
                          [1-HLine color rgbt<1,1,1,0>*0.6]
                          [1.000   color rgbt<1,1,1,0>*0.6]} }
 #end// of Raster(RScale, HLine)-macro
//-------------------------------------------------------------------------


plane { <0,1,0>, 0    // plane with layered textures
        texture { pigment{color White*1.1}
                  finish {ambient 0.45 diffuse 0.85}}
        texture { Raster(RasterScale,RasterHalfLine ) rotate<0,0,0> }
        texture { Raster(RasterScale,RasterHalfLineZ) rotate<0,90,0>}
        rotate<0,0,0>
      }
//------------------------------------------------ end of squared plane XZ
//-----------------------------------------------  macro "Vector(Start,End,Radius)"!
#macro Vector(P_start,P_end, R_Vector)
union{

cylinder{ P_start, P_end - ( vnormalize(P_end - P_start)*9.5*R_Vector), R_Vector  }
cone    { P_end - ( vnormalize(P_end - P_start)*10*R_Vector), 3*R_Vector, P_end, 0 }
}// end of union
#end //-------------------------------------------------------------------------- end of macro

//--------------------------------------------------- Segment_of_CylinderRing macro
#macro  Segment_of_CylinderRing ( R_out, R_in, Height, Segment_Angle_)
#local Segment_Angle = Segment_Angle_;
#local D = 0.00001; // just a little bit

 #if (Height = 0 ) #local  Height = D; #end
 #if (Height < 0 ) #local  D = -D; #end

 #if (R_out < R_in) #local X=R_out; #local R_out=R_in; #local R_in=X; #end
 #if (R_in <= 0) #local R_in = D; #end

 #if (Segment_Angle < 0)
      #local Negativ_Flag = 1;
      #local Segment_Angle = -Segment_Angle;
 #else
      #local Negativ_Flag = 0;
 #end


 #if (Segment_Angle >= 360) #local Segment_Angle = mod (Segment_Angle, 360); #end

 intersection{
   cylinder { <0,0,0>,<0,Height,0>, R_out
            } // end of outer cylinder  ----------
   cylinder { <0,-D,0>,<0,Height+D,0>, R_in
              inverse
            } // end of inner cylinder  ----------


  #if (Segment_Angle > 0) // ------------------------------------------------------
  #if (Segment_Angle >= 180)
  union{
  #end // then use union!

   box { <-R_out+D,-D,0>,< R_out+D, Height+D, R_out+D>
         rotate<0,0,0>
       }// end of box

   box { <-R_out+D,-D,-R_out+D>,< R_out+D, Height+D,0>
         rotate<0,  Segment_Angle,0>
       }// end of box

  #if (Segment_Angle >= 180)
   } // end of union
  #end // end of union, if union is used!

 #if (Negativ_Flag = 1)  rotate<0,-Segment_Angle,0>   #end
 scale<-1,1,-1>
 #end // of "#if (Segment_Angle > 0)" --------------------------------------------

} // end of intersection


#end // end of macro ------------------------- end of Segment_of_CylinderRing macro ------

// ---------------------------
// ---------------------------
// ---------------------------
// ---------------------------
// ---------------------------
// Base wireframe
#declare Base_Wire_Frame_Box =
object { // Wire_Box(A, B, WireRadius, UseMerge)
         Wire_Box(<-0.035,0,-0.035>,<1.035,1.035,1.035>, 0.035   , 0)

         texture{ pigment{ color rgb<1,0.65,0>} finish{ phong 1}
                }
         scale<1,1,1>  rotate<0, 0,0> translate<0,0.00,0>
       } // ---------------------------------------------
// base shape
#declare Base_Box = box{<0,0,0>,<1,1,1>
 texture{ pigment{ color rgb<0.7,0.5,1>*0.9}
                }
         scale<1,1,1>  rotate<0, 0,0> translate<0,0,0>
       } // ---------------------------------------------

//------------------------------------------------------------------------------------
// Shear_Transform.pov/     50 - Shearing and transform
/*
#case(10)  #declare Txt_Path="10 - matrix shear x to y.txt" #break
#case(11)  #declare Txt_Path="11 - matrix shear x to z.txt" #break
#case(12)  #declare Txt_Path="12 - matrix shear y to x.txt" #break
#case(13)  #declare Txt_Path="13 - matrix shear y to z.txt" #break
#case(14)  #declare Txt_Path="14 - matrix shear z to x.txt" #break
#case(15)  #declare Txt_Path="15 - matrix shear z to y.txt" #break

#case(20)  #declare Txt_Path="20 - Shear_Trans example.txt" #break
#case(21)  #declare Txt_Path="21 - Matrix_Trans example.txt" #break
#case(22)  #declare Txt_Path="22 - Axial_Scale_Trans.txt" #break
#case(23)  #declare Txt_Path="23 - Rotate_Around_Trans.txt" #break
#case(24)  #declare Txt_Path="24 - Axis_Rotate_Trans.txt" #break
#case(25)  #declare Txt_Path="25 - Reorient_Trans.txt" #break
#case(26)  #declare Txt_Path="26 - vaxis_rotate.txt" #break
#case(27)  #declare Txt_Path="27 - vrotate.txt" #break
*/

#if (Typ=10) // In_Path,"31 - random linear height.txt"
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 0.70, 0.70,  0.30> right x*image_width/image_height}
object{ Base_Wire_Frame_Box }
object{ Base_Box  #include concat(In_Path,Txt_Path) }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end

#if (Typ=11)
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 0.70, 0.70,  0.30> right x*image_width/image_height}
object{ Base_Wire_Frame_Box }
object{ Base_Box #include concat(In_Path,Txt_Path) }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end

#if (Typ=12)
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 0.70, 0.70,  0.30> right x*image_width/image_height}
object{ Base_Wire_Frame_Box }
object{ Base_Box #include concat(In_Path,Txt_Path) }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end

#if (Typ=13)
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 0.70, 0.70,  0.30> right x*image_width/image_height}
object{ Base_Wire_Frame_Box }
object{ Base_Box #include concat(In_Path,Txt_Path) }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end

#if (Typ=14)// 41 - VRand_In_Sphere.txt
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 0.70, 0.70,  0.30> right x*image_width/image_height}
object{ Base_Wire_Frame_Box }
object{ Base_Box #include concat(In_Path,Txt_Path) }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end

#if (Typ=15)// 42 - VRand_On_Sphere.txt
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 0.70, 0.70,  0.30> right x*image_width/image_height}
object{ Base_Wire_Frame_Box }
object{ Base_Box #include concat(In_Path,Txt_Path) }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end



#if (Typ=20)// 20 - Shear_Trans example.txt
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 1.00, 0.70,  0.30> right x*image_width/image_height}
box { <0.00, 0.00, 0.00>,< 1.00, 1.00, 1.00>
      texture { pigment{ color rgb<1.0,0.25,0.5>*0.75} finish { phong 0.7 }}
      Shear_Trans(<2,0.5,0>, <0,0.5,0>, <0,0.5,0.5>)
    } // end of box --------------------------------------
object { Wire_Box(<-0.035,0,-0.035>,<1.035,1.035,1.035>, 0.035   , 0)
         texture{ pigment{ color rgb<1,0.65,0>} finish{ phong 1} }
       }
object{ Base_Wire_Frame_Box }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end
// ---
#if (Typ=21)// 21 - Matrix_Trans example.txt
camera{ angle 35 location < 3.50, 3.00, -3.00> look_at< 1.00, 0.70,  0.30> right x*image_width/image_height}
box { <0.00, 0.00, 0.00>,< 1.00, 1.00, 1.00>
      texture { pigment{ color rgb<1.0,0.35,0.6>*0.75} finish {phong 0.7}}
      Matrix_Trans(<2,0.5,0>, <0,0.5,0>, <0,0.5,0.5>, <-0.5,0,0>)
    } // end of box --------------------------------------
object { Wire_Box(<-0.01,-0.01,-0.01>,<1.01,1.01,1.01>, 0.02   , 0)
         texture{ pigment{ color rgb<1,0.65,0.0>} finish { phong 1}}
       } // ---------------------------------------------------------
box { <-0.01,-0.01,-0.01>,<1.01,1.01,1.01>
      texture { pigment{ color rgbf<1,0.65,0.0,0.8>} finish { phong 0.7}}
    } // end of box --------------------------------------
object{ Base_Wire_Frame_Box }
object{ AxisXYZ_( 2.5, 2.5, 7.5, T_Dark, T_Light,20,-45,   0.65,0.65,1.05) scale 0.5}
#end
// ---
#if (Typ=22)// 22 - Axial_Scale_Trans.txt
camera{ angle 28 location < 2.00, 4.00, -4.50> look_at< 0.80, 0.00,  0.90> right x*image_width/image_height}
#local Object_Trans = < 1,0.0,0>;
box { <0.00, 0.00,-0.00>,< 1.0, 0.25,  1>
      texture { pigment{ color rgb<1,0.35,0.6>*0.95} finish {phong 0.7}}
      translate Object_Trans
      Axial_Scale_Trans(  <2,0,2>, 0.5)
    } // end of box --------------------------------------
object{ Vector( o , <2,0,2> , 0.04)
        texture { pigment{ color rgb<0.2,1,0.0>} finish { phong 0.7}}
        } //----------------------------------------------
object{ Wire_Box(<-0.010,-0.01,-0.01>,<1.01,0.251, 1.01>, 0.02   , 0)
        texture{ pigment{ color rgb<1,0.65,0.0>} finish { phong 1}}
        translate Object_Trans
       } // ---------------------------------------------------------
box { <-0.01,-0.01, 0.01>,<1.01,0.251, 1.01>
      texture { pigment{ color rgbf<1,0.85,0.4,0.9>} finish { phong 0.7 }}
      translate Object_Trans //
    } // end of box --------------------------------------
object{ AxisXYZ_( 4.3, 2.5, 4.5, T_Dark, T_Light,20,-15,   0.65,0.65,0.75) scale 0.5}
#end

// ---
#if (Typ=23)// 23 - Rotate_Around_Trans.txt
camera{ angle 28 location <3.80, 4.00, -4.50> look_at< 0.95, 0.30,  0.90> right x*image_width/image_height}
#local Object_Trans = <1.5,0.5,1>;
box { <0.00, 0.00, 0.00>,< 1.00, 0.50, 0.50>
      texture { pigment{ color rgb<1,0.3,0.5>*0.95} finish { phong 0.7 }}
      translate Object_Trans
      // Rotate_Around_Trans( <Rotate_x,Rotate_y,Rotate_z>, Center_of_Rotation)
      Rotate_Around_Trans( <0,0,20>, <1.5,0.5,1>)
    } // end of box --------------------------------------
object { Wire_Box(<-0.00,-0.00,-0.00>,<1.5,0.5,1>, 0.02   , 0)
         texture{ pigment{ color rgb<1,0.65,0.0>} finish { phong 1}}
       } // ---------------------------------------------------------
sphere { <0,0,0>, 0.075
         texture { pigment{ color rgb< 1,0.1, 0.0>} finish { phong 1 }}
            translate Object_Trans
       }  // end of sphere -----------------------------------
//#macro Segment_of_CylinderRing ( R_out, R_in, Height, Segment_Angle)
object{  Segment_of_CylinderRing ( 0, 0.80 ,0.02, -20)
         texture { pigment{ color  rgb< 1, .1, 0.0>} finish { phong 1}}
         rotate<-90,0,0> translate Object_Trans
      }//----------------------------------------------------------
object{ AxisXYZ_( 3.7, 2.5, 7, T_Dark, T_Light,10,-0,   0.65,0.55,0.75) scale 0.5}
#end


// ---
#if (Typ=24)// 24 - Axis_Rotate_Trans.txt
camera{ angle 28 location < 0.80, 4.00, -4.50> look_at< 0.80, 0.50,  0.90> right x*image_width/image_height}
#local Object_Trans = < 1,0.0,0>;
box { <0.00, 0.00,-0.40>,< 1.50, 0.25, -1>
      texture { pigment{ color rgb<1,0.3,0.5>*0.95} finish { phong 0.7}}
      translate Object_Trans   rotate<0,-degrees(atan2(2,1)),0>
      // Reorient_Trans(Axis1, Axis2)
      Axis_Rotate_Trans(  <1,0,2>, 110)
    } // end of box --------------------------------------
object{ Vector( o , <1.5,0,3> , 0.04)
        texture { pigment{ color rgb<0.2,1,0.0>} finish { phong 0.7 }}
        } //----------------------------------------------
object{ Wire_Box(<-0.010,-0.01,-0.401>,<1.51,0.251,-1.01>, 0.02   , 0)
        texture{ pigment{ color rgb<1,0.65,0.0>} finish { phong 1 }}
        translate Object_Trans  rotate<0,-degrees(atan2(2,1)),0>
      } // ---------------------------------------------------------
box { <-0.01,-0.01,-0.401>,<1.51,0.251,-1.01>
      texture { pigment{ color rgbf<1,0.85,0.3,0.9> } finish { phong 0.7 }}
      translate Object_Trans  rotate<0,-degrees(atan2(2,1)),0>
    } // end of box --------------------------------------
//#macro Segment_of_CylinderRing ( R_out, R_in, Height, Segment_Angle)
object{  Segment_of_CylinderRing ( 0.0, 0.50 ,0.02, -110)
         texture { pigment{ color  rgbf< 0.2,1,0.2,0.8>} finish { diffuse 0.9 phong 1} }
         rotate<-90,90,0>
         translate Object_Trans  rotate<0,-degrees(atan2(2,1)),0>
      }//----------------------------------------------------------
object{ AxisXYZ_( 3.3, 2.5, 7, T_Dark, T_Light,10,-0,   0.65,0.55,0.75) scale 0.5}
#end
//---------------------------------------------------- end shearing and transform


// ---
#if (Typ=25)// 25 - Reorient_Trans.txt
camera{ angle 27 location < 4.50, 4.50, -4.50> look_at< 0.90, 0.00,  0.80> right x*image_width/image_height}
#local Object_Trans = < 1,0.0,0>;
box { <0.00, 0.00,0>,< 1.50, 0.25,  1>
      texture { pigment{ color rgb<1,0.4,0.5>*0.75} finish { phong 0.7 }}
      translate Object_Trans
      // Reorient_Trans(Axis1, Axis2)
      Reorient_Trans(  <1,0,0>, <1,0.0,2>)
    } // end of box --------------------------------------
object{ Vector( o , <1,0.0,2> , 0.04)
        texture { pigment{ color rgb<0.2,1,0.0> } finish { phong 0.7 }}
        } //----------------------------------------------
object{ Vector( o , <1,0,0> , 0.04)
        texture { pigment{ color rgb<0.2,1,0.0>*0.5 } finish { phong 0.7 }}
        } //----------------------------------------------
object{ Wire_Box(<-0.010,-0.01,-0.01>,<1.51,0.251, 1.01>, 0.02   , 0)
        texture{ pigment{ color rgb<1,0.65,0.0>} finish { phong 1}}
        translate Object_Trans
        Reorient_Trans(  <1,0,0>, <1,0.0,2>)
      } // ---------------------------------------------------------

object{ Wire_Box(<-0.010,-0.01,-0.01>,<1.51,0.251, 1.01>, 0.02   , 0)
        texture{ pigment{ color rgb<1,0.65,0.0>} finish { phong 1}}
        translate Object_Trans
      } // ---------------------------------------------------------

box { <-0.010,-0.01,-0.01>,<1.51,0.251, 1.01>
      texture { pigment{ color rgbf<1,0.95,0.5,0.9> } finish { phong 0.7 }}
      translate Object_Trans
    } // end of box --------------------------------------
//#macro Segment_of_CylinderRing ( R_out, R_in, Height, Segment_Angle)
object{  Segment_of_CylinderRing ( 0.0, 0.50 ,0.02, -60)
         texture { pigment{ color  rgbf< 0.5,1,  0.3, 0.8>} finish { diffuse 0.9 phong 1}}
         translate< 0,0.04,0>
      }//----------------------------------------------------------
object{ AxisXYZ_( 5.2, 2.25, 4.5, T_Dark, T_Light,20,-15,   0.65,0.65,0.75) scale 0.5}
#end

// ---
#if (Typ=26)// 26 - vaxis_rotate.txt
camera{ angle 28 location < 3.00, 3.70, -1.20> look_at< 0.30, 0.50,  0.30> right x*image_width/image_height}
#declare V1 = < 0,1,0.5>;
#declare V2 = < 1,1.5,0>  ;
#declare Angle = 60; // degrees
// vaxis_rotate(V1,V2,A) = rotate V1 around V2 by A degrees
//vaxis_rotate( < 0,1,0.5>, < 0,1,0.5>, 70 )
object{ Vector( o ,V1 , 0.03)
        texture { pigment{ color rgb<0.2,1,0.0>*0.7}  finish { phong 0.7 }}
        } //----------------------------------------------
object{ Vector( o ,vaxis_rotate( V1,V2, 80)  , 0.03)
        texture { pigment{ color rgb<0.5,1,0.0>*0.7} finish { phong 0.7 }}
        } //----------------------------------------------
object{ Vector( o ,V2 , 0.04)
        texture { pigment{ color rgb<1,0,0.0>*0.7 } finish { phong 0.7 }}
        } //----------------------------------------------
//#macro Segment_of_CylinderRing ( R_out, R_in, Height, Segment_Angle)
object{  Segment_of_CylinderRing ( 1.00, 0.95 ,0.02, -65)
         texture { pigment{ color  rgb< 0.5,0.8,  0.0>*0.8} finish { phong 1}}
         rotate<0,-65,0> translate<0,0.5,0>
         Point_At_Trans(V2)
      }//----------------------------------------------------------
object{ AxisXYZ_( 1.00, 2.00, 3.85, T_Dark, T_Light,20,-65,   0.65,0.65,0.75) scale 0.5}
#end


// ---
#if (Typ=27)// 27 - vrotate.txt
camera{ angle 48 location < 2.50, 2.2, -2.80> look_at< 1.20, 0.70,  0.30> right x*image_width/image_height}
#declare V1 = < 2.5,1,0>;
#declare V2 = vrotate(V1,< 0,-90,0>);
#declare Angle = 90; // degrees
object{ Vector( o ,V1 , 0.03)
        texture { pigment{ color rgb<1,0.40,0.0>*0.7}  finish { phong 0.7 }}
        } //----------------------------------------------
object{ Vector( o, V2, 0.05)
        texture { pigment{ color rgb<0.5,1,0.0>*0.7} finish { phong 0.7 }}
        } //----------------------------------------------
//#macro Segment_of_CylinderRing ( R_out, R_in, Height, Segment_Angle)
object{  Segment_of_CylinderRing ( 2.50, 2.45 ,0.05, -90)
         texture { pigment{ color  rgb< 1,0.0,  0.2>*0.8} finish { phong 1}}
           translate<0,1,0> no_shadow
         //Point_At_Trans(V2)
      }//----------------------------------------------------------
cone{<0,0,0>,0,<0.35,0,0>,0.15
       texture { pigment{ color  rgb< 1,0.0,  0.2>*0.8} finish { phong 1}}
       translate V2
      }

object{ AxisXYZ_( 2.25, 2.25, 4.85, T_Dark, T_Light,0,0,   0.55,0.65,0.75) scale 0.5}
#end


//---------------------------------------------------- end shearing and transform