// Last edited on 2005-01-05 21:54:42 by stolfi
// Processed by remove-cam-lights

background{ color rgb < 0.75, 0.80, 0.85 > }

#declare raio = 2.000;

#declare tinta_A =
  texture {
    pigment { color rgb < 0.10, 0.80, 1.00 > }
    finish { diffuse 0.8 specular 0.4 roughness 0.005 ambient 0.1 }
  }

#declare tinta_B =
  texture {
    pigment { color rgb < 0.00, 0.60, 0.00 > filter 1}
    finish { diffuse 0.1 specular 1 roughness 0.001 ambient 0.1 reflection 0.25 }
  }

#declare tinta_C =  < 1.00, 1.00, 0.00 >;

#declare verde = < 0.00, 0.75, 0.00 >;

#declare tx_amarelo =
  texture {
    pigment { rgb tinta_C }
    finish {
      ambient 0.05 diffuse 0.05
      reflection tinta_C
      specular 0.20 roughness 0.05
    }
  }

#declare furo_meio =
  cylinder {
    < 0.00, 0.00, 4.00 >,
    < 0.00, 0.00, -4.00 >,
    7.50
    texture { tx_amarelo }
  }

#declare furo_lateral =
   box {
    <  10.00, -1.25, -2.15>
    < -10.00,  1.25,  2.15>
    texture { tx_amarelo }
}

#declare torao =
  torus { 7.00, 3.00
          rotate -90*x
          texture { tx_amarelo }
  }

lathe {
    linear_spline
    9,
    <0.5,0.75>, <0.75,1>, <1.25,1.75>, <0.75,2>, <0.75,2.50>, <1.5,2.50>, <1.50, 2.75>, <0.75,2.75>, <0.75, 4.00>
    texture { tinta_B }
    finish {
      ambient .3
      phong .75
    }
    rotate 90*x
    translate <7.00, 2.00, 2.25>

}

lathe {
   linear_spline
   3,
   <1, 0>, <0.5, 1>, <1, 2>
    texture { tinta_B }
    finish {
      ambient .3
      phong .75
    }
    rotate 90*x
    translate <0.00, -8.00, 2.25>
}

lathe {
   linear_spline
   3,
   <1, 0>, <0.5, 1>, <1, 2>
    texture { tinta_B }
    finish {
      ambient .3
      phong .75
    }
    rotate 90*x
    translate <0.00, 8.00, 2.25>
}

plane {z,-7
  texture {
  pigment { checker <0.5,0.5,0.5>, <1,1,1> }
  finish {ambient 0.6 diffuse 0.4 }
  scale 2
  rotate 45*y
  }
}

difference {
  union {
    object { torao }
  }
  object { furo_meio }
  object { furo_lateral
 rotate -10*z }
  object { furo_lateral
 rotate 50*z }
}

#include "camlight.inc"
camlight(<0,0,0>,<30.00,13.00,10.00>,1.00,z,1.0)