#include "colors.inc"
#include "textures.inc"
#include "shapes.inc"
#version 3.0
global_settings { assumed_gamma 2.2 }
//------CAMERA ANGLES INCLUDE FRONT VIEW, SIDE VIEW AND TOP VIEW------
/*
//top view
camera {
location <0,>
look_at <0,>
}
*/
//front view
camera {
location <0,>
look_at <0,>
}
light_source { <0,> White }
plane {
<0,>,
-1.0
texture {
pigment {White}
}
}
//METAL STEM
cylinder {
<0,>,
<0,>, 2.5
}
//METAL RING
#declare ring = torus {
15,
0.5
texture {
pigment {Red}
}
}
//METAL PARTS CONNECTING
//METAL PART 1
#declare metal_part = cylinder {
<1,>,
<15,>, .5
}
#declare metal_p1 = cylinder {
<15,>,
<22.25,>, .5
}
//METAL PART 2
#declare metal_p2 = cylinder {
<0,>,
<22,>, .5
}
//METAL PARTS
//METAL PART 3
#declare metal_p3 = cylinder {
<22,>,
<34,>, .5
}
#declare metal_p4 = cylinder {
<22,>,
<12,>, .5
}
#declare metal_p5 = cylinder {
<0,>,
<34,>, .5
}
#declare metal_p6 = cylinder {
<34,>,
<34,>, .5
}
#declare metal_p7 = cylinder {
<12,>,
<34,>, .5
}
#declare metal_large = union{
object {metal_p3}
object {metal_p3 translate <-22, 0, -22>}
object {metal_p4}
object {metal_p5}
object {metal_p6}
object {metal_p7}
}
#declare metal_large_group = union{
object {ring}
object {metal_part}
object {metal_part rotate y*90}
object {metal_part rotate y*-90}
object {metal_part rotate y*180}
object {metal_p1}
object {metal_p1 rotate y*90}
object {metal_p1 rotate y*-90}
object {metal_p1 rotate y*180}
object{metal_p2 }
object{metal_p2 rotate y*90}
object{metal_p2 rotate y*-90}
object{metal_p2 rotate y*180}
object {metal_large }
object {metal_large rotate y*90}
object {metal_large rotate y*-90}
object {metal_large rotate y*180}
}
object{metal_large_group}
#declare bottom_cylinder = cylinder{
<8,>,
<8,>, 7
}
#declare bottom_sphere = sphere {
<8,>
7
}
#declare bottom_ring = torus {
6.6,
0.5
}
#declare bottom_object = merge{
object {bottom_cylinder}
object {bottom_sphere}
object {bottom_sphere translate y*14}
object {bottom_ring translate <8,>}
texture {
pigment {Red}
}
}
#declare bottom_group = union{
object {bottom_object}
object {bottom_object translate x*-16}
object {bottom_object translate <-16, 0, 42>}
object {bottom_object translate z*42}
object {bottom_object translate <13,>}
object {bottom_object translate <13,>}
object {bottom_object translate <-29, 0, 13>}
object {bottom_object translate <-29, 0, 29>}
}
object {bottom_group}
#declare bottom_cylinder = cylinder{
<8,>,
<8,>, 7
}
#declare bottom_sphere = sphere {
<8,>
7
}
#declare bottom_ring = torus {
6.6,
0.5
}
#declare bottom_object = merge{
object {bottom_cylinder}
object {bottom_sphere}
object {bottom_sphere translate y*12}
object {bottom_ring translate <8,>}
object {bottom_ring translate <8,>}
texture {
pigment {Red}
}
}
#declare bottom_group = union{
object {bottom_object}
object {bottom_object translate x*-16}
object {bottom_object translate <-16, 0, 42>}
object {bottom_object translate z*42}
object {bottom_object translate <13,>}
object {bottom_object translate <13,>}
object {bottom_object translate <-29, 0, 13>}
object {bottom_object translate <-29, 0, 29>}
object {bottom_object translate <0,> scale 0.8 pigment {White}}
object {bottom_object translate <-16, 25, 29> scale 0.8 pigment {White}}
object {bottom_object translate <-16, 25, 13> scale 0.8 pigment {White}}
}
object {bottom_group}
#declare object1 = sphere {
<12,>
6
}
object {object1}
#declare object2 = cylinder{
<3,>,
<3,>, 3
}
object {object2 pigment {White}}
Friday, December 12, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment