// maison 666 ||| macros terrains et exterieurs //cuisine // jennifer #macro placard_dessus ( longeur, hauteur, largeur ) union { difference { box { < 0.00, 0.00, 0.00>, } box { , } box { , < longeur-0.02,hauteur-0.65,largeur-0.05> } box { , } texture { pigment { color rgb <1,1,1> } finish { ambient 0.3 diffuse 0.9 specular 0.7 roughness 0.01 reflection 0 } } texture { pigment { image_map { gif "Red" once } translate <0.001, 0.25, 0.00> scale 0.605 } finish { ambient 0.2 diffuse 0.7 specular 0.6 roughness 0.01 } } } difference { box { < 0.22, 0.20,-0.040 >, < 0.28, 0.220, 0.04 > } box { < 0.20, 0.18,-0.030 >, < 0.270, 0.222, 0.01 > } } difference { box { < 0.38, 0.20,-0.040 >, < 0.32, 0.220, 0.04 > } box { < 0.40, 0.18,-0.030 >, < 0.33, 0.222, 0.01 > } } } #end #macro multi_placard_dessus() #local i = 0; #while (i < 6) #local uu=-2.70 + 0.60*i; object {placard_dessus (0.60,0.80,0.35) translate rotate <0,90,0> } #local i = 1+i; #end #end #macro spot_cuisine( a,b,c) object { spot( < a, b, c >, , 50, 0.03, <0,0,0> ) rotate <0,0,0> } #end #macro multi_spot_cuisine() #local i = 0; #while (i < 6) #local uu= 3.00 - 0.6*i; object {spot_cuisine (2.40, -0.60, 2.40) translate <0,0,-uu> } #local i = 1+i; #end #end #macro lumiere_cuisine() object { spot( < 0,-0.10, 0 >, <0 ,-0.15, 0 >, 90, 0.00, <0,0,0> ) rotate <0,0,0> } object { spot( < 0,-0.10, 0 >, <0 ,-0.05, 0 >, 90, 0.00, <0,0,0> ) rotate <0,0,0> } #end //charlotte #macro placard ( longueur, largeur, hauteur ) object { box { <0.00,0.00,0.00>, } texture { pigment { image_map { gif "Red.gif" once } translate <0.001,0.0001,0.00> scale 1.5 } finish { ambient 0.3 diffuse 0.7 specular 0.6 } } } #end #macro bras ( longueur, largeur, hauteur ) object { box { <0.00,0.00,0.00>, } texture { pigment { color rgb <0,0,0> } finish { ambient 0.3 diffuse 0.7 specular 0.6 } } } #end #macro plaque_marble ( longueur, largeur, hauteur ) object { box { <0.00,0.00,0.00>, } texture { pigment { marble color_map { [ 0.1 color rgb <0.8,0.8,0.8> ] [ 0.8 color rgbt <0.1,0.1,0.1,0.2> ] } scale 1/9 rotate <0,30,90> turbulence 20 } finish { ambient 0.6 diffuse 0.4 specular 0.7 } } } #end #macro plaque_electrique ( longueur, largeur, hauteur ) object { box { <0.00,0.00,0.00>, } texture { pigment { color rgb <0,0,0> } finish { ambient 0.6 diffuse 0.1 specular 0.7 roughness 0.01 reflection 0.7} } } #end #macro plaque_carreau ( longueur, largeur, hauteur ) object { box { <0.00,0.00,0.00>, } texture { pigment { color rgb <0,0,0> } finish { ambient 0.6 diffuse 0.1 specular 0.7 roughness 0.01 reflection 0.7} } } #end #macro bloc_cuisine() union { object { plaque_marble ( 3.60,0.05, 0.60 ) translate < -2.70,-1.15,2.10> rotate <0,90,0>} object { plaque_electrique ( 0.50,0.01, 0.50 ) translate < -0.85,-1.10,2.15> rotate <0,90,0>} object { plaque_carreau ( 3.60,0.60, 0.01 ) translate < -2.70,-1.15,2.68> rotate <0,90,0>} #local i=0; # while (i<6) #local uu = -2.7 + 0.6*i; object { placard ( 0.59,0.09, 0.50 ) translate < uu,-2.10,2.20> rotate <0,90,0>} //petit corp object { placard ( 0.59,0.44, 0.60 ) translate < uu,-2.00,2.10> rotate <0,90,0>} //grand corp_1 object { placard ( 0.59,0.19, 0.60 ) translate < uu,-1.55,2.10> rotate <0,90,0>} //middle corp_2 object { placard ( 0.59,0.19, 0.60 ) translate < uu,-1.35,2.10> rotate <0,90,0>} //middle corp_3 #local i = i+1; #end #local i=0; # while (i<6) #local uu = -2.45 + 0.6*i; object { bras ( 0.10,0.02, 0.10 ) translate < uu,-1.7,2.05> rotate <0,90,0>} // bras grand corp_1 object { bras ( 0.10,0.02, 0.10 ) translate < uu,-1.45,2.05> rotate <0,90,0>} //bras middle corp_2 object { bras ( 0.10,0.02, 0.10 ) translate < uu,-1.25,2.05> rotate <0,90,0>} //bras middle corp_3 #local i = i+1; #end } #end #macro robinet() union { object { cylinder {<0,0,0>, <0,0.2,0>, 0.02}} difference { object { torus {0.06, 0.02} rotate <90,0,0> translate <-.06,0.2,0.0> } object { box { <-0.2,0.2,0.1>, <0.2,0,-0.3>} } } texture { pigment { color rgb <.2,.2,.2> } finish { ambient 0.3 diffuse 0.9 specular 0.7 roughness 0.05 reflection 0.7 } } translate <2.63,-1.10,1.60> } #end #macro bloc_cuisine_evien() difference { bloc_cuisine() object { cylinder {<2.35,-1.25,1.60>, <2.35,-1.05,1.60>, 0.2} texture { pigment { color rgb <1,1,1>} finish { ambient 0.3 diffuse 0.9 specular 0.7 roughness 0.01 reflection 0 } } } } #end // c´est tout... :-)