évolution de la chose
This commit is contained in:
parent
aff60cf979
commit
3728c5f738
14
gadgets.inc
14
gadgets.inc
@ -4,12 +4,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* ======================================================= */
|
/* ======================================================= */
|
||||||
#declare R_C = 0.79;
|
#declare R_C = 0.72;
|
||||||
|
|
||||||
/* 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 = 0.54;
|
#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 }
|
cone { y*0.125, RCP, y*0.250, 0.07 }
|
||||||
cylinder { 0, y*0.125, RCP }
|
cylinder { 0, y*0.125, RCP }
|
||||||
@ -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.04+(0.06*Cos_010(NormClock));
|
#local Rt = 0.03+(0.04*Cos_010(NormClock));
|
||||||
#local H = 3.2;
|
#local H = 2.4;
|
||||||
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,15 +53,15 @@ merge {
|
|||||||
// ------------------------------------------------------ ##
|
// ------------------------------------------------------ ##
|
||||||
#macro Chose_le_corps () // = object
|
#macro Chose_le_corps () // = object
|
||||||
difference {
|
difference {
|
||||||
cone { 0, R_C*0.72, 1.2*y, R_C }
|
cone { 0, R_C*0.55, y, R_C }
|
||||||
sphere { 1.2*y R_C*0.73 }
|
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 }
|
||||||
#elseif (R < 0.50) texture { tPlasticBlue }
|
#elseif (R < 0.50) texture { tPlasticBlue }
|
||||||
#elseif (R < 0.75) texture { tPlasticPrune }
|
#elseif (R < 0.75) texture { tPlasticPrune }
|
||||||
#else texture { tPlasticGreen }
|
#else texture { tPlasticGreen }
|
||||||
#end // if
|
#end // if
|
||||||
translate y*0.50
|
translate y*0.48
|
||||||
}
|
}
|
||||||
#debug "== Fin chose le corps\n"
|
#debug "== Fin chose le corps\n"
|
||||||
#end // macro
|
#end // macro
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user