File: 20%20-%20Include_File%20Socket.txt

package info (click to toggle)
povray 1%3A3.7.0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 146,780 kB
  • sloc: cpp: 845,005; ansic: 122,118; sh: 34,206; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,387; cs: 879; awk: 590; perl: 245; xml: 95
file content (96 lines) | stat: -rw-r--r-- 3,583 bytes parent folder | download | duplicates (14)
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
// POV-Ray 3.7 include file "Socket.inc"
// author, date:  Friedrich A. Lohmueller, May-2010
//---------------------------------------------------------------------------------------
//#ifndef( Socket_Inc_Temp)
//#declare Socket_Inc_Temp = version;
//#version 3.7;
// commented out = 
// allowed to be re-declared with other textures by reloading this include file!
//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
#ifndef(  Colors_Inc_Temp)
#include "colors.inc"
#end
#ifndef(  Textures_Inc_Temp)
#include "textures.inc"
#end
//----------------------------------------------------
//----------------------------------------------------
#ifndef( Socket_Tex_1 )
#declare Socket_Tex_1 =  // sphere
//texture{ pigment{color rgb<1,0,0>}
texture{ Chrome_Metal  
         normal { bumps 0.85 scale 0.01 } 
         finish { phong 0.5 } 
       }
#end 
#ifndef( Socket_Tex_2 )
#declare Socket_Tex_2 =  // box 
//texture{ pigment{color rgb<1,0.65,0>}
texture{ pigment{color rgb<1,1,1>*0.7}
         finish { phong 1 } 
       }
#end 
#ifndef( Socket_Tex_3 )
// texture{ pigment{color rgb<0.5,1,0> }
#declare Socket_Tex_3 =  // cylinders
texture{ Chrome_Metal
         finish { phong 1 } 
       }
#end 
//----------------------------------------------------
//--------------------------------------------------------------------///////////////////
//------------------------------------------------------------------------- object Socket
#declare Socket = 

intersection{ 

 box{<-0.5,-0.5,-0.5>,<0.5,0.5,0.5> texture{ Socket_Tex_2 } }
 sphere{<0,0,0>,0.66                texture{ Socket_Tex_1 } }

 cylinder{<0,0,-1>,<0,0,1>,0.3 inverse texture{ Socket_Tex_3 }}
 cylinder{<0,-1,0>,<0,1,0>,0.3 inverse texture{ Socket_Tex_3 }}
 cylinder{<-1,0,0>,<1,0,0>,0.3 inverse texture{ Socket_Tex_3 }}

} // end intersection ---------------------------------------------- end of object Socket
//--------------------------------------------------------------------///////////////////




//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
// example:
/*
//------------------------------------------------------------------- optional textures
#declare Socket_Tex_1 =  // sphere
texture{ Chrome_Metal  
         finish { phong 0.5 } 
       }
#declare Socket_Tex_2 =  // box 
//texture{ pigment{color rgb<1,0.65,0>}
texture{ Polished_Chrome pigment{color rgb<1,0.80,0.30>}
         finish { phong 1 } 
       }
#declare Socket_Tex_3 =  // cylinders
texture{ Polished_Chrome
         finish { phong 1 } 
       }
//-------------------------------------------------------------------------------------//
#include "Socket.inc"
//-------------------------------------------------------------------------------------//
object{ Socket 
        scale <1,1,1>*1
        rotate<0,0,0>
        translate<0.00,0.00, 0.00>
      } //------------------------
//-------------------------------------------------------------------------------------//
//---------------------------------------------------------------------------------------
*/

//#version Socket_Inc_Temp;
//#end
// commented out = 
// allowed to be re-declared with other textures by reloading this include file!
//------------------------------------------------------------------- end of include file