meilleur pied pour la chose

This commit is contained in:
Tonton Th 2025-12-05 20:23:28 +01:00
parent a924f62890
commit 245740d2a2

View File

@ -4,14 +4,14 @@
*/ */
/* ======================================================= */ /* ======================================================= */
#declare R_C = 0.72; #declare R_C = 0.65;
/* ce truc mérite un nom plus parlant ! */ /* ce truc mérite un nom plus parlant ! */
#macro Chose_le_pied () #macro Chose_le_pied ()
merge { merge {
#local RCP = R_C * 0.666; #local RCP = R_C * 0.666;
cylinder { 0, y/2, 0.07 } cylinder { 0, y/2, 0.07 }
cone { y*0.125, RCP, y*0.250, 0.07 } sphere { 0, RCP scale <1, 0.17, 1> translate y*0.125 }
cylinder { 0, y*0.125, RCP } cylinder { 0, y*0.125, RCP }
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.25) texture { tPlasticOrange } #if (R < 0.25) texture { tPlasticOrange }
@ -20,7 +20,7 @@ merge {
#else texture { tPlasticGreen } #else texture { tPlasticGreen }
#end // if #end // if
} }
#debug "== Fin chose le pied\n" // #debug "== Fin chose le pied\n"
#end // macro #end // macro
// ------------------------------------------------------ ## // ------------------------------------------------------ ##
/* /*
@ -48,12 +48,12 @@ merge {
#end // if #end // if
translate y*1.05 translate y*1.05
} }
#debug "== Fin chose les tiges\n" // #debug "== Fin chose les tiges\n"
#end // macro #end // macro
// ------------------------------------------------------ ## // ------------------------------------------------------ ##
#macro Chose_le_corps () // = object #macro Chose_le_corps () // = object
difference { difference {
cone { 0, R_C*0.55, y, R_C } cone { 0, R_C*0.46, y, R_C }
sphere { y, R_C*0.75 } sphere { y, R_C*0.75 }
#local R = rand(Rng1); #local R = rand(Rng1);
#if (R < 0.25) texture { tPlasticOrange } #if (R < 0.25) texture { tPlasticOrange }
@ -63,7 +63,7 @@ difference {
#end // if #end // if
translate y*0.48 translate y*0.48
} }
#debug "== Fin chose le corps\n" // #debug "== Fin chose le corps\n"
#end // macro #end // macro
// ------------------------------------------------------ ## // ------------------------------------------------------ ##
#macro Chose () #macro Chose ()