// PovRay-file // objekte.pov created 24 Apr 06 20:56:02 by thk // Time-stamp: <2006-04-25 16:00:55 krauss> #ifdef (objekte_inc) #else #declare objekte_inc=1; #macro fass() #local b=1; #local h=1; union { union { intersection { difference { // Ellipsoid sphere { <0,0,0> 1 scale } // minus senkrechte Fugen difference { union { #local i=0; #while (i<180) box { <-b,-h,-0.01> rotate y*i } #local i=i+30; #end } sphere { <0,0,0> 1 scale 0.95* } } } // geschnitten mit Würfel box { <-b,-h/2,-b> } texture { T_Wood10 scale 0.1 rotate z*90 } } } // dazu die Fassreifen intersection { union { cylinder { <0,-h/2+0.005,0> <0,-h/2+0.05,0> 0.5*b } cylinder { <0,-h/6,0> <0,-h/6-0.05,0> 0.5*b } cylinder { <0, h/6,0> <0, h/6+0.05,0> 0.5*b } cylinder { <0, h/2-0.005,0> <0, h/2-0.05,0> 0.5*b } } // abzüglich bounding ellipsoid zum kürzen der Fassreifen sphere { <0,0,0> 1 scale 1.02* } texture { T_Chrome_2A } } translate <0,h/2,0> // Fass steht auf Nullpunkt } #end #macro biertisch(l,h,b) union { box { <0,h-0.05,0> } cylinder { <0,0,0> <0,h-0.02,0> 0.04 translate <0.05,0,0.05> } cylinder { <0,0,0> <0,h-0.02,0> 0.04 translate <0.05,0,b-0.05> } cylinder { <0,0,0> <0,h-0.02,0> 0.04 translate } cylinder { <0,0,0> <0,h-0.02,0> 0.04 translate } texture { T_Wood10 scale 1 rotate y*0*45 } } #end #macro amboss() union { cylinder { <0,0,0> <0,0.5,0> 0.35 texture { T_Wood31 rotate x*90 } } union { difference { box { <0,0,0.05> <0.5,0.4,0.45> } cylinder { <-0.1,0.2,0.05> <0.6,0.2,0.05> 0.1 } cylinder { <-0.1,0.2,0.45> <0.6,0.2,0.45> 0.1 } } cone { <0,0.3,0.25> 0.1 <-0.3,0.38,0.25> 0.02 } texture { T_Chrome_2A } translate <-0.22,0.5,-0.25> } } #end #macro hammer() union { cylinder { <0,-0.005,0> <0,0.5,0> 0.025 texture { T_Wood31 rotate x*90 } } box { <-0.1,0,-0.05> <0.1,0.1,0.05> texture { T_Chrome_2A } } scale 2 } #end #macro barren() difference { box { <-0.2,0,-0.1> <0.2,0.1,0.1> } box { <-0.21,0,-0.1> <0.21,0.3,0.1> rotate x*15 translate <0,0,-0.2> } box { <-0.21,0,-0.1> <0.21,0.3,0.1> rotate -x*15 translate <0,0,0.2> } box { <-0.2,0,-0.11> <0.2,0.3,0.11> rotate -z*10 translate <-0.4,0,0> } box { <-0.2,0,-0.11> <0.2,0.3,0.11> rotate z*10 translate <0.4,0,0> } texture { T_Chrome_2A } scale 2 } #end #end