| // Prism with quadratic interpolation and conic sweeping
global_settings { assumed_gamma 2.2 }
#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"
camera {
location <0, 80, -200>
right <4/3, 0, 0>
up <0, 1, 0>
sky <0, 1, 0>
direction <0, 0, 1.8>
look_at <0, 15, 0>
}
light_source { <50, 200, -100> colour Gray70 }
light_source { <-20, 40, -20> colour Gray70 }
light_source { <100, 80, -200> colour Gray70 }
#declare Glas6 =
sor {
11,
<0.150754, 0.000000>
<0.150754, 0.000000>
<0.150754, 0.155779>
<0.150754, 0.391960>
<0.140704, 0.449749>
<0.082915, 0.489950>
<0.125628, 0.530151>
<0.140704, 0.582915>
<0.047739, 0.919598>
<0.047739, 1.000000>
<0.000000, 1.035176>
open
}
object {
Glas6
texture { Bronze_Metal }
scale <52, 52, 52>
translate <15, 0.001, 0>
}
#declare shape3 =
lathe {
cubic_spline
13,
<0.000000, 0.000000>,
<0.000000, 0.000000>,
<0.193050, 0.003861>,
<0.193050, 0.019305>,
<0.073359, 0.038610>,
<0.027027, 0.135135>,
<0.023166, 0.559846>,
<0.100386, 0.679537>,
<0.359073, 0.996139>,
<0.335907, 1.000000>,
<0.096525, 0.725869>,
<0.000000, 0.691120>,
<0.000000, 0.691120>
scale <2.5, 2.5, 2.5>
}
#declare shape3 =
lathe {
cubic_spline
13,
<0.000000, 0.000000>,
<0.000000, 0.000000>,
<0.193050, 0.003861>,
<0.193050, 0.019305>,
<0.073359, 0.038610>,
<0.027027, 0.135135>,
<0.023166, 0.559846>,
<0.100386, 0.679537>,
<0.359073, 0.996139>,
<0.335907, 1.000000>,
<0.096525, 0.725869>,
<0.000000, 0.691120>,
<0.000000, 0.691120>
scale <1.5, 1.5, 1.5>
}
object {
shape3
texture {
pigment { Yellow }
finish { Shiny metallic }
}
scale <25, 25, 25>
translate <-15, 0.002, -15>
}
background { color MidnightBlue }
plane { y, 0
pigment {
checker colour Red colour Black
scale 20
}
finish {
ambient 0.2
diffuse 0.8
}
}
|