#include "colors.inc"

camera {
  location <-3, 4, -10>*1.5
  look_at 0
}

light_source { <100, 100, -100> color White }
light_source { <1, 6, 20> color Gray50 }

#declare Eps = 1e-4

background { color White }

#declare Saucer = union {
  torus { 7.1, .05 translate 1.2*y  }
  difference {
    cone { 1*y, 6.1, 1.2*y, 7.1 }
    cone { (1-Eps)*y, 6, (1.2+Eps)*y, 7 }
  }
  difference {
    cone { 0*y, 4.5, 1*y, 6 }
    cone { -Eps*y, 4.4, (1+Eps)*y, 5.9 }
  }
  cylinder { -.05*y, .05*y, 4.45 }
}

intersection {
  object { Saucer }
  height_field {
    tga "crack_hf.tga" smooth
    translate <-.5, -1, -.5>
    scale <14, 8, 14>
    rotate 90*z
  }
  pigment { White }
  finish { phong 1 }
  translate .6*x
  rotate 3*x
}

difference {
  object { Saucer }
  height_field {
    tga "crack_hf.tga" smooth
    translate <-.5, -1, -.5>
    scale <14, 8, 14>
    rotate 90*z
  }
  pigment { White }
  finish { phong 1 }
  translate -.5*x
  rotate 6*z
}