File: 34%20-%20blob%20for%20loop%203D.txt

package info (click to toggle)
povray 1%3A3.7.0.0-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 105,396 kB
  • ctags: 115,305
  • sloc: cpp: 438,613; ansic: 118,761; sh: 37,706; pascal: 6,420; asm: 3,355; ada: 1,681; makefile: 1,282; cs: 879; awk: 590; perl: 245; xml: 95
file content (23 lines) | stat: -rw-r--r-- 790 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
#declare Strength = 1; 
 
blob{ //--------------------------------------------------------------------
  threshold 0.65
  //#for(Identifier, Start, End [, Step]) 
  #for (NrX, 0, 3, 1) 
    #for (NrY, 0, 3, 1) 
      #for (NrZ, 0, 3, 1) 
    
         sphere{ <0,0,0>,0.8, Strength  
                 translate<  NrX*1, NrY*1, NrZ*1> 
  
                 texture{ pigment{ color rgb<0.9,0.1,0.20> }
                          finish { phong 1 reflection { 0.3 metallic 0.5} }
                        }
               } // end sphere 
      #end // --------------- end z of #for loop 
    #end // --------------- end y of #for loop 
  #end // --------------- end x of #for loop 

  rotate<0,0,0> 
  translate<0,0,0>
} // end of union ---------------------------------------------------------