// Exercicio 5 de MC930 para POV-ray
// Last edited on 2000-11-07 11:10 by Alencar Junior
// RA: 950060

background { color rgb <1,1,1> }  //to make the patch easier to see
  light_source { <300, 300, -700>
    color rgb <1,1,1> }
  plane { y, -12
    texture {
      pigment {
        checker
        color rgb <0,1,0>
        color rgb <1,1,0>
      }
    }
 }

camera {
  location  < 0.00, 10.00, -30.00 >
  right     < 2.40, 0.00, 0.00 >
  up        < 0.00, 0.00, 1.80 >
  sky       < 0.00, 0.00, 1.00 >
  look_at   < 0.00, 0.00, 0.00 >
} 

  
#declare A0  = < 0.00, 0.00, 0.00 >;
#declare A1  = < 0.00, 3.00, 6.00 >;
#declare A2  = < 0.00, 9.00, 4.00 >;
#declare A3  = < 0.00, 18.00, 11.00 >;
#declare A4  = < 3.00, 0.00, 0.00 >;
#declare A5  = < 3.00, 3.00, 6.00 >;
#declare A6  = < 3.00, 9.00, 4.00 >;
#declare A7  = < 3.00, 18.00, 10.00 >;
#declare A8  = < 6.00, 0.00, 0.00 >;
#declare A9  = < 6.00, 3.00, 6.00 >;
#declare A10 = < 6.00, 9.00, 4.00 >;
#declare A11 = < 6.00, 18.00, 8.00 >;
#declare A12 = < 9.00, 0.00, 0.00 >;
#declare A13 = < 9.00, 3.00, 0.00 >;
#declare A14 = < 9.00, 9.00, 0.00 >;
#declare A15 = < 9.00, 18.00, 0.00 >;

#declare patchA =
  bicubic_patch{ type 0
    u_steps 4
    v_steps 4
    flatness 0.1
    A0, A1, A2, A3,
    A4, A5, A6, A7,
    A8, A9, A10, A11,
    A12, A13, A14,A15
    pigment {color rgb <0,0,1> }
  }


sphere { A0, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A1, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A2, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A3, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A4, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A5, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A6, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A7, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A8, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A9, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A10, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A11, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A12, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A13, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A14, 0.1 texture{ pigment{ color rgb <1,0,0> }}}
sphere { A15, 0.1 texture{ pigment{ color rgb <1,0,0> }}}

object { patchA}