摘要
授權條款
#declare RAD = on;
#include "colors.inc"
global_settings {
#if(RAD)
radiosity {
brightness 0.60
count 100
error_bound 0.2
gray_threshold 0.0
low_error_factor 0.2
minimum_reuse 0.015
nearest_count 10
recursion_limit 1
#if (version>3.1)
adc_bailout 0.01
max_sample -1.0
media off
normal off
always_sample 1
pretrace_start 0.08
pretrace_end 0.01
#end
}
#end
}
background { color White }
#declare corner = lathe { // a quarter of cyclindic volume used to "round" the corners
linear_spline
6
<0,0>,<0.05,0>, <0.1,0.05>, <0.1,1.35>,<0.05,1.4>, <0,1.4>
rotate 90*x
}
#declare side = prism { // the extrusions of the volume
linear_sweep
linear_spline
0, 1, 9,
<0.05,0>, <0,0.05>, <0,1.35>, <0.05,1.4>, <2.05,1.4>, <2.1,1.35>, <2.1,0.05>, <2.05,0>, <0.05,0>
}
#declare bottom = prism { // The bottom of the core
linear_sweep
linear_spline
0, 1, 9,
<0.05,0>, <0,0.05>, <0,1.35>, <0.05,1.4>, <0.35,1.4>, <0.4,1.35>, <0.4,0.05>, <0.35,0>, <0.05,0>
}
#declare middle = cylinder { // the extrusion of the middle leg
<0,0,0>,<0,1,0>,0.35
}
union {
difference{
union{
object {side scale <1,1.5,1> translate -1.05*x }
object {bottom scale <1,1.9,1> rotate -90*z translate <-0.95,0.3,0> }
object {corner translate -.95*x}
object {corner translate 0.95*x}
rotate -90*x
}
union{
cylinder{<0,0,0>,<0,10,0>,0.9}
box{<-0.9,0,0>,<0.9,10,10>}
rotate -90*x translate <0,1.05,-0.3>
}
}
object {middle scale <1,1.5,1> rotate -90*x translate <0,1.05,0> }
rotate <0, -20, 0>
finish {
#if(RAD)
ambient 0
diffuse 0.7
#else
ambient 0.2
diffuse 0.5
#end
phong 1
phong_size 60
}
pigment { Gray }
}
light_source { <2, 4, -3> color White}
camera {location <1,8,-15> look_at <0.27,0.3,0> angle 11}
And compiled using the following command:
povray -IEP_core.pov -W1280 -H960 -Q11 +A