work on Chose

This commit is contained in:
Tonton Th 2025-10-19 06:32:17 +02:00
parent 9a00f7317f
commit c3b4d94977

View File

@ -9,14 +9,26 @@
* une idée à creuser davantage... * une idée à creuser davantage...
*/ */
#macro Chose () // = object // ------------------------------------------------------ ##
#macro Chose_le_pied ()
merge {
cylinder { 0, y/2, 0.07 }
cylinder { 0, y/6, 0.33 }
texture { T_WIP_alert }
}
#end // macro
// ------------------------------------------------------ ##
/*
* Il doit être possible de dissocier le noyau des tiges */
#macro Chose_le_corps () // = object
merge { merge {
difference { difference {
cone { -1.2*y, 0.81, 0.2*y, 1.12 } cone { -1.2*y, 0.81, 0.2*y, 1.12 }
sphere { 0.2*y 0.73 } sphere { 0.2*y 0.73 }
} }
#local CK = NormClock * 8.654; #local CK = NormClock * (9.876+rand(Rng1));
#for (Foo, 0, 7) #for (Foo, 0, 7)
#local C2X = 3.4 * sin(CK+rand(Rng1)) * sin(CK*3); #local C2X = 3.4 * sin(CK+rand(Rng1)) * sin(CK*3);
#local C2Z = 2.3 * (sin(-CK+rand(Rng1)) * cos(CK*(5+rand(Rng1)))); #local C2Z = 2.3 * (sin(-CK+rand(Rng1)) * cos(CK*(5+rand(Rng1))));
@ -25,7 +37,7 @@ merge {
cylinder { 0, <C2X, H, C2Z>, R } cylinder { 0, <C2X, H, C2Z>, R }
sphere { <C2X, H, C2Z>, R } sphere { <C2X, H, C2Z>, R }
#end #end
#if (rand(Rng1) < 0.42) #if (rand(Rng1) < 0.52)
texture { tPlasticOrange } texture { tPlasticOrange }
#else #else
texture { Ruby_Glass } texture { Ruby_Glass }
@ -33,9 +45,16 @@ merge {
scale <0.62, 0.5, 0.61> scale <0.62, 0.5, 0.61>
rotate -y*clock rotate -y*clock
translate y*1.10 translate y*1.05
} }
#end // macro #end // macro
// ------------------------------------------------------ ##
#macro Chose ()
union {
Chose_le_pied ()
Chose_le_corps ()
}
#end // macro
/* ======================================================= */ /* ======================================================= */
#declare Horloge = object #declare Horloge = object