diff --git a/contexte.inc b/contexte.inc index c503768..252e94c 100644 --- a/contexte.inc +++ b/contexte.inc @@ -6,6 +6,44 @@ /* ------------------------------------------------------------ */ +#macro GyroPhare_mat () +cylinder { + 0, y*H_gyro, R_gyro + #if (rand(Rng1) < 0.5) + texture { T_Stone25 scale 1+rand(Rng1) } + #else + texture { T_Stone6 } + #end + } +#end // macro + +#macro GyroPhare_lampe () +union { + difference { + cylinder { 0, y*0.20, R_gyro } + cylinder { y*0.01, y*0.19, R_gyro*0.97 } + #local WB = 0.015; + box { <-1, 0.03, -WB>, <1, 0.18, WB> } + box { <-WB, 0.03, -1>, } + #undef WB + pigment { color White } + rotate y*(0.5-rand(Rng1))*clock + } + light_source { y*0.10 rgb <0.8, 0.9, 0.999999999> } + } +#end // macro + +#macro GyroPhare () +union { + object { GyroPhare_mat () } + object { GyroPhare_lampe () + // rotate y*rand(Rng1)*clock + translate y*(H_gyro+0.02) } + } +#end // macro + +/* ------------------------------------------------------------ */ + #declare Rhxba = 0.30; #declare R2hxba = Rhxba * 0.48; diff --git a/essai.pov b/essai.pov index b197d62..083fb98 100644 --- a/essai.pov +++ b/essai.pov @@ -12,42 +12,6 @@ #include "hexabenz.inc" // ======================================================= - -#macro GyroPhare_mat () -cylinder { - 0, y*H_gyro, R_gyro - #if (rand(Rng1) < 0.5) - texture { T_Stone25 scale 1+rand(Rng1) } - #else - texture { T_Stone6 } - #end - } -#end // macro - -#macro GyroPhare_lampe () -union { - difference { - cylinder { 0, y*0.20, R_gyro } - cylinder { y*0.01, y*0.19, R_gyro*0.97 } - #local WB = 0.015; - box { <-1, 0.03, -WB>, <1, 0.18, WB> } - box { <-WB, 0.03, -1>, } - #undef WB - pigment { color White } - rotate y*(0.5-rand(Rng1))*clock - } - light_source { y*0.10 rgb <0.8, 0.9, 0.999999999> } - } -#end // macro - -#macro GyroPhare () -union { - object { GyroPhare_mat () } - object { GyroPhare_lampe () - // rotate y*rand(Rng1)*clock - translate y*(H_gyro+0.02) } - } -#end // macro // ======================================================= #macro Bubble ()