Symmetric and Alternating Group





 // Symmetric and Alternating Group
  #include "colors.inc"
  #include "stones.inc"
  camera {
    location <0, 3.5, -7.5>
    look_at 0 
  }    
  
light_source { <0, 500, -1000> White shadowless }    
light_source { <100, 500, 1000> Red*.15 }  
 
#declare bot = array[8];                           
#declare top = array[8];     

#declare bot[0] = 3; #declare bot[1] = 0;
#declare top[0] = 0; #declare top[1] = 1; 
  
#declare bot[2] = 7; #declare bot[3] = 1;
#declare top[2] = 2; #declare top[3] = 3;       

#declare bot[4] = 6; #declare bot[5] = 2;
#declare top[4] = 4; #declare top[5] = 5; 
  
#declare bot[6] = 5; #declare bot[7] = 4;
#declare top[6] = 6; #declare top[7] = 7;

plane { y, -1
    pigment { checker White*3 White*2 }
    scale <2, 2, 2>
  }   
  
box { <-4.10, 2.2, -1.00>,< 4.10, 2.50, 1.00>   
 texture {  T_Stone7   } 
   } 

   
box { <-4.10, 0, -1.00>,< 4.10, 0.3, 1.00>   
 texture {  T_Stone8  } 
 } 

 #declare I = 0;  
 
 #while(I <= 7)    
                                       
 cylinder { <bot[I]-3.5, -0.6,0>,<top[I]-3.5, 2.60,0>, .05 

           texture { pigment { color rgb<0,0,0> }
                     finish  { phong 0.5 reflection{ 0.1 metallic 0.50} } 
                   } 
         }  
           
 #declare I = I + 1;
 #end