work on Chose
This commit is contained in:
parent
9a00f7317f
commit
c3b4d94977
27
gadgets.inc
27
gadgets.inc
@ -9,14 +9,26 @@
|
||||
* 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 {
|
||||
difference {
|
||||
cone { -1.2*y, 0.81, 0.2*y, 1.12 }
|
||||
sphere { 0.2*y 0.73 }
|
||||
}
|
||||
#local CK = NormClock * 8.654;
|
||||
#local CK = NormClock * (9.876+rand(Rng1));
|
||||
#for (Foo, 0, 7)
|
||||
#local C2X = 3.4 * sin(CK+rand(Rng1)) * sin(CK*3);
|
||||
#local C2Z = 2.3 * (sin(-CK+rand(Rng1)) * cos(CK*(5+rand(Rng1))));
|
||||
@ -25,7 +37,7 @@ merge {
|
||||
cylinder { 0, <C2X, H, C2Z>, R }
|
||||
sphere { <C2X, H, C2Z>, R }
|
||||
#end
|
||||
#if (rand(Rng1) < 0.42)
|
||||
#if (rand(Rng1) < 0.52)
|
||||
texture { tPlasticOrange }
|
||||
#else
|
||||
texture { Ruby_Glass }
|
||||
@ -33,9 +45,16 @@ merge {
|
||||
|
||||
scale <0.62, 0.5, 0.61>
|
||||
rotate -y*clock
|
||||
translate y*1.10
|
||||
translate y*1.05
|
||||
}
|
||||
#end // macro
|
||||
// ------------------------------------------------------ ##
|
||||
#macro Chose ()
|
||||
union {
|
||||
Chose_le_pied ()
|
||||
Chose_le_corps ()
|
||||
}
|
||||
#end // macro
|
||||
|
||||
/* ======================================================= */
|
||||
#declare Horloge = object
|
||||
|
Loading…
Reference in New Issue
Block a user