une chose presque meilleure

This commit is contained in:
Tonton Th 2025-12-15 14:46:25 +01:00
parent 23254ba7fa
commit 24469ba611

View File

@ -4,7 +4,7 @@
*/ */
/* ======================================================= */ /* ======================================================= */
#declare R_C = 0.65; #declare R_C = 0.45;
/* ce truc mérite un nom plus parlant ! */ /* ce truc mérite un nom plus parlant ! */
#macro Chose_le_pied () #macro Chose_le_pied ()
@ -35,8 +35,8 @@ merge {
#local C2X = (R_C + 0.2) * sin(CK2+rand(Rng1)) * sin(CK*3); #local C2X = (R_C + 0.2) * sin(CK2+rand(Rng1)) * sin(CK*3);
#local C2Z = (R_C + 0.3) * (sin(-CK2+rand(Rng1)) * #local C2Z = (R_C + 0.3) * (sin(-CK2+rand(Rng1)) *
cos(CK*(rand(Rng1)))); cos(CK*(rand(Rng1))));
#local Rt = 0.03+(0.04*Cos_010(NormClock)); #local Rt = 0.03+(0.02*Cos_010(NormClock));
#local H = 2.4; #local H = 1.56;
cylinder { 0, <C2X, H, C2Z>, Rt } cylinder { 0, <C2X, H, C2Z>, Rt }
sphere { <C2X, H, C2Z>, Rt } sphere { <C2X, H, C2Z>, Rt }
#end #end
@ -53,8 +53,9 @@ merge {
// ------------------------------------------------------ ## // ------------------------------------------------------ ##
#macro Chose_le_corps () // = object #macro Chose_le_corps () // = object
difference { difference {
cone { 0, R_C*0.46, y, R_C } #local H = 0.60 + (0.10 * rand(Rng1));
sphere { y, R_C*0.75 } cone { 0, R_C*0.52, y*H, R_C }
sphere { y*H, R_C*0.75 }
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.25) texture { tPlasticOrange } #if (R < 0.25) texture { tPlasticOrange }
#elseif (R < 0.50) texture { tPlasticBlue } #elseif (R < 0.50) texture { tPlasticBlue }