big commit, a lot of small adjustemnst
This commit is contained in:
62
gadgets.inc
62
gadgets.inc
@@ -4,22 +4,16 @@
|
||||
*/
|
||||
|
||||
/* ======================================================= */
|
||||
/* new 30 aout 2025
|
||||
*
|
||||
* une idée à creuser davantage...
|
||||
*/
|
||||
|
||||
// ------------------------------------------------------ ##
|
||||
/* ce truc mérite un nom plus parlant ! */
|
||||
#macro Chose_le_pied ()
|
||||
|
||||
#local RCP = 0.70;
|
||||
merge {
|
||||
cylinder { 0, y/2, 0.07 }
|
||||
cylinder { 0, y/8, 0.39 }
|
||||
cone { y*0.125, RCP, y*0.250, 0.07 }
|
||||
cylinder { 0, y*0.125, RCP }
|
||||
#local R = rand(Rng1);
|
||||
#if ( R < 0.52)
|
||||
texture { T_Beton_1 }
|
||||
#else
|
||||
texture { T_Beton_2 }
|
||||
#if ( R < 0.52) texture { T_Beton_1 }
|
||||
#else texture { T_Beton_2 }
|
||||
#end
|
||||
}
|
||||
#end // macro
|
||||
@@ -30,14 +24,14 @@ merge {
|
||||
#macro Chose_le_corps () // = object
|
||||
merge {
|
||||
difference {
|
||||
cone { -1.2*y, 0.81, 0.2*y, 1.07 }
|
||||
cone { -1.2*y, 0.78, 0.2*y, 1.04 }
|
||||
sphere { 0.2*y 0.73 }
|
||||
}
|
||||
#local CK = NormClock * (9.876+rand(Rng1));
|
||||
#for (Foo, 0, 7)
|
||||
#local CK2 = CK + Foo;
|
||||
#local C2X = 1.9 * sin(CK2+rand(Rng1)) * sin(CK*3);
|
||||
#local C2Z = 2.0 * (sin(-CK2+rand(Rng1)) * cos(CK*(rand(Rng1))));
|
||||
#local C2X = 1.2 * sin(CK2+rand(Rng1)) * sin(CK*3);
|
||||
#local C2Z = 1.3 * (sin(-CK2+rand(Rng1)) * cos(CK*(rand(Rng1))));
|
||||
#local R = 0.06+(0.04*Cos_010(NormClock));
|
||||
#local H = 4.2;
|
||||
cylinder { 0, <C2X, H, C2Z>, R }
|
||||
@@ -72,7 +66,7 @@ union {
|
||||
text {
|
||||
// ttf "datas/DSEG7Classic-Regular.ttf" Texte 0.1, 0
|
||||
ttf "datas/ComicMono-Bold.ttf" Texte 0.1, 0
|
||||
texture { tPlasticGreen }
|
||||
texture { tPlasticPrune }
|
||||
}
|
||||
scale 3.00
|
||||
rotate 90*x
|
||||
@@ -91,16 +85,12 @@ prism {
|
||||
1, // ... up through here
|
||||
7, // the number of points making up the shape ...
|
||||
<3,5>, <-3,5>, <-5,0>, <-3,-5>, <3, -5>, <5,0>, <3,5>
|
||||
#if (rand(Rng1) < 0.5)
|
||||
texture { T_Beton_1 }
|
||||
#else
|
||||
texture { T_Beton_2 }
|
||||
#if (rand(Rng1) < 0.5) texture { T_Beton_1 }
|
||||
#else texture { T_Beton_2 }
|
||||
#end // if
|
||||
|
||||
scale 0.666
|
||||
scale 0.666 // WTF ?
|
||||
}
|
||||
#end // macro
|
||||
|
||||
// ------------------------------------------------------ ##
|
||||
|
||||
#macro HexaPole_tubes ()
|
||||
@@ -116,15 +106,11 @@ union {
|
||||
cylinder { 0, y*H2, R }
|
||||
sphere { 0, R*2 scale <1, 0.555, 1> }
|
||||
sphere { 0, R*2 scale <1, 1.555, 1> translate y*H2 }
|
||||
#local Ra = rand(Rng1);
|
||||
#if (Ra < 0.25)
|
||||
texture { T_Chrome_1A }
|
||||
#elseif (Ra < 0.50)
|
||||
texture { T_Chrome_4D }
|
||||
#elseif (Ra < 0.75)
|
||||
texture { T_Brass_2C }
|
||||
#else
|
||||
texture { Soft_Silver }
|
||||
#local Ra = rand(Rng1);
|
||||
#if (Ra < 0.25) texture { T_Chrome_1A }
|
||||
#elseif (Ra < 0.50) texture { T_Chrome_4D }
|
||||
#elseif (Ra < 0.75) texture { T_Brass_2C }
|
||||
#else texture { Soft_Silver }
|
||||
#end
|
||||
translate <Xp, 0, Zp>
|
||||
}
|
||||
@@ -135,7 +121,6 @@ union {
|
||||
#undef H
|
||||
#undef R
|
||||
#end
|
||||
|
||||
// ------------------------------------------------------ ##
|
||||
/*
|
||||
* l'assemblage en grand cercle de ces trucs est
|
||||
@@ -182,12 +167,9 @@ union {
|
||||
sphere {
|
||||
0, 0.070
|
||||
#local R = rand(Rng1);
|
||||
#if ( R < 0.333 )
|
||||
texture { Ruby_Glass }
|
||||
#elseif ( R < 0.666 )
|
||||
texture { Orange_Glass }
|
||||
#else
|
||||
texture { Gold_Nugget }
|
||||
#if ( R < 0.333 ) texture { Ruby_Glass }
|
||||
#elseif ( R < 0.666 ) texture { Orange_Glass }
|
||||
#else texture { Gold_Nugget }
|
||||
#end
|
||||
#undef R
|
||||
scale <1.414, 1.000, 1.414>
|
||||
@@ -202,6 +184,8 @@ union {
|
||||
}
|
||||
#end
|
||||
|
||||
// ------------------------------------------------------ ##
|
||||
|
||||
#declare Les_Machins = object
|
||||
{
|
||||
union {
|
||||
|
||||
Reference in New Issue
Block a user