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 ! */
#macro Chose_le_pied ()
merge {
#local RCP = R_C * 0.666;
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 }
#local R = rand(Rng1);
#if (R < 0.25) texture { tPlasticOrange }
@ -20,7 +20,7 @@ merge {
#else texture { tPlasticGreen }
#end // if
}
#debug "== Fin chose le pied\n"
// #debug "== Fin chose le pied\n"
#end // macro
// ------------------------------------------------------ ##
/*
@ -48,12 +48,12 @@ merge {
#end // if
translate y*1.05
}
#debug "== Fin chose les tiges\n"
// #debug "== Fin chose les tiges\n"
#end // macro
// ------------------------------------------------------ ##
#macro Chose_le_corps () // = object
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 }
#local R = rand(Rng1);
#if (R < 0.25) texture { tPlasticOrange }
@ -63,7 +63,7 @@ difference {
#end // if
translate y*0.48
}
#debug "== Fin chose le corps\n"
// #debug "== Fin chose le corps\n"
#end // macro
// ------------------------------------------------------ ##
#macro Chose ()