// maison 666 ||| macros cloisons_placards #macro module_placard_1(position) prism { linear_spline 0.00, 0.60, 15, <0,0>, <0.60,0>, <0.60,0.025>, <0.575,0.025>, <0.575,0.05>, <0.60,0.05>, <0.60,1.60>,<0.575,1.60>, <0.575,1.625>, <0.60,1.625>, <0.60,1.95>, <0.575,1.95>, <0.575,2.00>, <0.00,2.00>, <0,0> //outer rim texture { pigment { wood color_map { [ 0.4 color rgbt <0.8,0.5,0> ] [ 0.3 color rgbt <0.7,0.4,0> ] } turbulence 0.5 scale 1/12 rotate <45,45,45> } finish { ambient 0.3 diffuse 0.7 specular 0.0 roughness 0.1 reflection 0.1 } } normal { marble bump_size 1/8 turbulence 0 // 1, 0, 0 scale 1/8 } rotate <90,180,0> translate position } #end #macro placard_1() object { module_placard_1(<1.20,2.37,2.8>) } object { module_placard_1(<1.20,2.37,2.195>) } object { module_placard_1(<1.20,2.37,1.590>) } object { module_placard_1(<1.20,2.37,-2.185>) } object { module_placard_1(<1.20,2.37,-1.585>) } object { module_placard_1(<1.20,2.37,-0.985>) } #end #macro module_placard_4(rotation,position) union { prism { linear_spline 0.00, 0.60, 5, <0,0>, <0.30,0>, <0.30,0.65>, <0.00,0.65>, <0,0> rotate <90,90,0> translate <0,0.05,0> } prism { linear_spline 0.00, 0.05, 5, <0,0>, <0.298,0>, <0.298,0.60>, <0.00,0.60>, <0,0> rotate <90,0,0> translate <0,0,0> } prism { linear_spline 0.00, 0.05, 5, <0,0>, <0.298,0>, <0.298,0.60>, <0.00,0.60>, <0,0> rotate <90,0,0> translate <0.302,0,0> } prism { linear_spline 0.00, 0.30, 9, <0,0>, <0.15,0>, <0.15,0.03>, <0.03,0.03>, <0.03,0.57>, <0.15,0.57>, <0.15,0.60>, <0,0.60>, <0,0> rotate <90,0,90> translate <0,-0.75,-0.30> } texture { pigment { wood color_map { [ 0.4 color rgbt <0.8,0.5,0> ] [ 0.3 color rgbt <0.7,0.4,0> ] } turbulence 0.5 scale 1/12 rotate <45,45,45> } finish { ambient 0.3 diffuse 0.7 specular 0.7 roughness 0.001 reflection 0.1 } } rotate (rotation) translate position } #end #macro placard_4() object { module_placard_4(<0,-90,0>,<2.40,0,-0.90>) } object { module_placard_4(<0,-90,0>,<2.40,0,-0.30>) } object { module_placard_4(<0,-90,0>,<2.40,0,0.30>) } object { module_placard_4(<0,-90,0>,<2.40,0,0.90>) } object { module_placard_4(<0,-90,0>,<2.40,0,1.50>) } object { module_placard_4(<0,-90,0>,<2.40,0,2.10>) } #end //partie de marina #macro cloison() object { box { <-3.60,0.00,-0.005>, <0.00,2.25,0.005> } pigment { color rgbt <0,0.5,1,0.7> } translate <0.90,0.00,0> } object { box { <-0.87,0.00,-0.05>, <0.00,2.10,0.05> } pigment { color rgbt <0,0.5,1,0.7> } translate <0.90,0.00,0.01> } object { box { <-0.87,0.00,-0.05>, <0.00,2.10,0.05> } pigment { color rgbt <0,0.5,1,0.7> } translate <0.90,0.00,-0.01> } object { box { <-0.60,0.00,-0.05>, <0.00,2.40,0.05> } pigment { color rgbt <0,0.5,1,0.7> } translate <1.50,0.00,0.88> } object { box { <-0.60,0.00,-0.05>, <0.00,2.40,0.05> } pigment { color rgbt <0,0.5,1,0.7> } translate <2.70,0.00,0.88> } object { box { <-0.60,0.00,-0.05>, <0.00,2.40,0.05> } pigment { color rgbt <0,0.5,1,0.7> } translate <2.40,0.00,0.98> } object { box { <-0.01,0.00,0.00>, <0.00,0.60,3.60> } pigment { color rgbt <0,0.5,1,0.7> } translate <2.70,-1.50,-0.90> } #end #macro module_placard_3(position) prism {linear_spline 0.00,0.60,7 <0,0>, <0.6,0>, <0.6,0.7>, <0.50,0.70>, <0.5,0.80>, <0,0.80>, <0,0> pigment { color rgbt <1,1,1> } finish { ambient 0.3 diffuse 0.7 specular 0.0 roughness 0.15 reflection 0.1 } rotate <90,180,0> translate position } #end #macro placard_3() object { module_placard_3(<2.70,-1.5,-0.3>) } object { module_placard_3(<2.70,-1.5,0.32>) } object { module_placard_3(<2.70,-1.5,0.94>) } object { module_placard_3(<2.70,-1.5,1.56>) } object { module_placard_3(<2.70,-1.5,2.18>) } object { module_placard_3(<2.70,-1.5,2.80>) } #end#macro plan_de_travail() object { box { <-0.60,0.00,0.00>, <0.00,0.05,3.60> } translate <2.70,-1.50,-0.9> texture { pigment { wood //marble //granite wood color_map { [ 0.0 color rgbt <0.6,0.4,0,0> ] [ 1.0 color rgbt <0,0,0,0> ] } scale 1/32 turbulence 1/4 } finish { ambient 0.3 diffuse 0.7 specular 0.7 roughness 0.01 reflection 0.0 } } } #end #macro feu_ceramique() object { box { <-0.52,0.00,-0.00>, <0.00,0.60,0.01>} pigment { color rgbt <0,0,0,0> } translate <0.25,2.0,1.4> rotate <90,90,0> } #end //cloison() placard_3() plan_de_travail() feu_ceramique() object { cylinder {<-0.90,0.01,-0.90>, <-0.90,0.06,-0.90>,0.22 } pigment { color rgbt <1,1,1,0> } translate <3.30,-1.51,2.90> } //appels a faire //cloison() //placard