File: B7%20-%20prism%20X%20prism%20Z%20union2.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 (56 lines) | stat: -rw-r--r-- 2,397 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
union{  //-----------------------------------------------------------------
 union{ //----------------------------------------------------------------------- 
 // linear prism in x-direction: from ... to ..., number of points (first = last)
  prism { -1.00 ,1.00 , 4
         <-1.00, 0.00>, // first point
         < 1.00, 0.00>, 
         < 0.00, 1.50>,
         <-1.00, 0.00>  // last point = first point!!!
         rotate<-90,-90,0> //turns prism in x direction! Don't change this line!  
        } // end of prism --------------------------------------------------------

 // linear prism in z-direction: from ,to ,number of points (first = last)
  prism { -1.00 ,1.00 , 4
         <-1.00, 0.00>,  // first point
         < 1.00, 0.00>, 
         < 0.00, 1.50>, 
         <-1.00, 0.00>   // last point = first point!!!!
         rotate<-90,0,0> scale<1,1,-1> //turns prism in z direction!  
        } // end of prism --------------------------------------------------------

  texture { pigment{ color Scarlet } 
            finish { phong 0.2}
          } // end of texture
  translate<0.00, 0.05, 0.00> 
  }// end of union -------------------------------------------------------- 


 union{ 
  // linear prism in x-direction: from ... to ..., number of points (first = last)
  prism { -1.001 ,1.001 , 4
          <-1.00, 0.00>, // first point
          < 1.00, 0.00>, 
          < 0.00, 1.50>,
          <-1.00, 0.00>  // last point = first point!!!
          rotate<-90,-90,0> //turns prism in x direction! Don't change this line!  
        } // end of prism --------------------------------------------------------

  // linear prism in z-direction: from ,to ,number of points (first = last)
  prism { -1.001 ,1.001 , 4
         <-1.00, 0.00>,  // first point
         < 1.00, 0.00>, 
         < 0.00, 1.50>, 
         <-1.00, 0.00>   // last point = first point!!!!
         rotate<-90,0,0> scale<1,1,-1> //turns prism in z direction!  
        } // end of prism --------------------------------------------------------
 
  texture { pigment{ color White} 
            finish { phong 1.0}
          } // end of texture
  translate<0.00, 0.00, 0.00> 
  }// end of union --------------------------------------------------------------

 scale <1.00, 1.00, 1.00>*1.05
 rotate<0,0,0> 
 translate<0.00, 0.00, 0.00> 
}// ----------------------------------------------------------- end of union