// Last edited on 2009-07-21 16:45:33 by stolfilocal
// Processed by remove-cam-lights

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

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

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

#declare tinta_C = 
  texture {
    pigment { color rgb < 0.5, 0.4, 0.6 > }
    finish { diffuse 0.8 specular 0.1 roughness 0.005 ambient 0.1 }
  }

#declare tinta_D = 
  texture {
    pigment { color rgb < 0.2, 0.1, 1.0 > }
    finish { diffuse 0.8 specular 0.1 roughness 0.005 ambient 0.1 }
  }

#declare tinta_E = 
  texture {
    pigment { color rgb < 0.7, 0.7, 0.9 > }
    finish { diffuse 0.8 specular 0.1 roughness 0.005 ambient 0.1 }
  }

#declare tinta_F = 
  texture {
    pigment { color rgb < 1, 0, 0 > }
    finish { diffuse 0.8 specular 0.1 roughness 0.005 ambient 0.1 }
  }

#declare pizza = 
cylinder {
   <10,10,0>, <10,10,0.1>, 8
   texture { tinta_B }        
}

#declare fatia = 
cone {
   <35,10,0>, 25, <10,10,0>, 0
   texture { tinta_C }        
}

#declare cilindro_base = 
cylinder {
   <20,25,2>, <25,25,2>, 1
   texture { tinta_A }        
}

#declare cilindro_apoio_1 = 
cylinder {
   <25,25,1.7>, <17,25,1.7> 0.3
   texture { tinta_D }        
}

#declare cilindro_apoio_2 = 
cylinder {
   <25,25,2.3>, <17,25,2.3> 0.3
   texture { tinta_D }        
}

#declare cortador = 
cylinder {
   <17,25,1.8>, <17,25,1.9>, 2
   texture { tinta_E }        
}

#declare tomate_1 = 
cylinder {
   <10,5,0>, <10,5,0.3>, 1
   texture { tinta_F }        
}

#declare tomate_2 = 
cylinder {
   <10,15,0>, <10,15,0.3>, 1
   texture { tinta_F }        
}

#declare tomate_3 = 
cylinder {
   <5,10,0>, <5,10,0.3>, 1
   texture { tinta_F }        
}

#declare tomate_4 = 
cylinder {
   <15,10,0>, <15,10,0.3>, 1
   texture { tinta_F }        
}

union {
 difference { object {pizza} object {fatia} }
 union {
   intersection { object {pizza} object {fatia} }
   object {tomate_4} 
   translate <13,-4,0> rotate <0,0,22> 
 }
 object {tomate_1}
 object {tomate_2}
 object {tomate_3}
 union {
    object {cilindro_base}
    object {cilindro_apoio_1}
    object {cilindro_apoio_2}
    object {cortador}
    translate <0,3,0>
 }
}

// Original camera parameters:
// #local cam_ctr = <15,15,0>
// #local cam_vec = (<15,15,40>-<15,15,0>)
// #local cam_sky = z

#include "camlight.inc"
camlight(<15,15,0>,<10,10,10>,50.0,z,1.0)