#declare ww=0.7; #declare wwd=(1-ww)/2; #declare sop=0.002; //some other parameter #declare wh=0.5; //wall height #declare wz=0.32075/2 ; //1/ 3* sqrt 12 (oder so) #declare wadi = 0.15; #declare wlr=0.02; #declare wh=0.5; //wall height #declare wz=0.32075/2 ; //1/ 3* sqrt 12 (oder so) #declare wadi = 0.08; //wall thickness * c #declare wlr=0.02; #declare wallight = object { light_source { < 0,0, 0 > color 0.1 area_light <0,0 , wlr-0.02> 3,3 //jitter adaptive 1 fade_distance 1 fade_power 1 looks_like { sphere {<0,0,0> wlr pigment { color rgb <1,1,1> } finish { diffuse .6 ambient .8 } } //?rotate 90*z } //rotate 29*x } } #declare halbwand = object{ prism { linear_sweep bezier_spline 0.5-wwd , wwd-0.5, 16, <-wadi, 0>, <-wadi,wh> , <-wadi/4,wh>, <-wadi/10, wh>, <-wadi/10,wh>, <0,wh> , <0,wh >, <0,wh>, <0,wh> , , , <0,0>, <0,0> , <0,0>, <0,0>, <-wadi,0> // <-wadi, 0>, <-wadi/8,sop> , <-wadi/4,0>, <-wadi/10, wh>, // <-wadi/10,wh>, <0,wh> , <0,wh >, <0,wh>, // <0,wh> , , , <0,0>, // <0,0> , <0,0>, <0,0>, <-wadi,0> rotate -90 * z } // box{ // <0.5,0,0> <-0.5,0.1,wh> // } } #macro h_wand(xx, yy) object { union { object { wallight #translate < -0.2,0,wh+0.2 > } object { wallight #translate < 0.2,0,wh+0.2 > } union { object{ halbwand #rotate 180*z } object{ halbwand } cylinder { <0.5-wwd,0,wh> <-0.5+wwd,0,wh> 0.025 } texture { T_Chrome_5C pigment { color rgb<.2, .2, .2> } } // finish { // ambient .1 // diffuse .6 // phong 0.6 // reflection { // 0.7 // fresnel on // } // } // interior { // ior 3.1 // } } } #translate <0.5,0,0> #translate } #end