// Last edited on 2013-11-04 19:12:30 by stolfilocal
// Processed by remove-cam-lights

background{ color rgb < 1,1,1 > }

  #declare tx_prata =
  texture{
    pigment{ color rgb < 0.51, 0.55, 0.51 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_button1 =
  texture{
    pigment{ color rgb < 0.50,0.16,0.16 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

  #declare tx_button2 =
  texture{
    pigment{ color rgb < 0,0,0 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

  #declare tx_tela =
  texture{
    pigment{ color rgb < 0.50,0.50,0.50 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare raio = 1.000;

#macro rede_botao(n)
 union{
        # declare i = 1;
        #if(mod(n,7)=0)

                #while (i < n)

                                        cylinder{< 0.25*i, 0.6, 1.25 >, <0.25*i,0.5,1.1>, 0.10
                        texture{tx_button1}

        }
                        #declare i=i+1;
                #end

        #else

                #while (i < n)

                                        cylinder{< 0.25*i, 0.6, 1.25 >, <0.25*i,0.5,1.1>, 0.10
                        texture{tx_tela}

        }
                #declare i=i+1;
                #end

#end
}
#end

 #declare panel =

 box{ < 0, 0, 0 >, < +4, +4, +0.5 >
        texture{ tx_prata       }
  }

  #declare panel2 =
        union{
  box{ < 0, 0, 0 >, < +4, +2, +0.5 >
        texture{ tx_prata       }

  }
  box{ < 1, 0, 0.5 >, < +3, +1, +0.55 >
        texture{ tx_tela        }
  }
  rotate <-30, 0, 0>
        }

   #declare pe =box{ < 0, 0, 0 >, < 0.5, 0.5, +2 >
        texture{ tx_prata       }

  }

#include "eixos.inc"

union{
  //object{ eixos(5.00) }
  object{ panel  translate < 2,3,2 > }
  object{ panel2  translate < 2,3,3 >}
  object{ pe translate < 2,3,0 >}
   object{ pe translate < 5.5,3,0 >}
   object{ pe translate < 5.5,6.5,0 >}
   object{ pe translate < 2,6.5,0 >}
         object{ rede_botao(7) translate < 3.25,4,1.6>}
         object{ rede_botao(3) translate  < 2.2,4,1.6> }
                object{ rede_botao(3) translate  < 5.2,4,1.6> }

  }

#include "camlight.inc"
#declare centro_cena = < 4.00, 4.50, 1.50 >;
#declare raio_cena = 4.5;
#declare dir_camera = < 14.00, 7.00, 4.00 >;
#declare dist_camera = 16.0;
#declare intens_luz = 1.00;
camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)