big commit, a lot of small adjustemnst

This commit is contained in:
Tonton Th
2025-11-25 02:36:52 +01:00
parent fa8f9578b5
commit c56db2a87d
15 changed files with 170 additions and 207 deletions

View File

@@ -18,6 +18,8 @@ merge {
}
#end
/* ------------------------------------------------------------ */
#macro HW_Cones ()
union {
#for (foo, 0, 360, 60)
@@ -40,6 +42,7 @@ union {
}
#end
/* ------------------------------------------------------------ */
#macro HW_Chassis ()
difference {
@@ -61,36 +64,39 @@ difference {
#local Tx = El * E * sin(radians(foo));
#local Tz = E * cos(radians(foo));
sphere { 0, 0.17 translate <Tx, 0.20, Tz> }
#end
#for (foo, 0, 360, 60)
#local E = Hc_rad * 1.14;
#local Tx = El * E * sin(radians(foo+30));
#local Tz = E * cos(radians(foo+30));
cylinder { -y, y, 0.05 translate <Tx, 0, Tz> }
cylinder { -y, y, 0.07 translate <Tx, 0, Tz> }
#end
translate y*0.10
texture { T_Wood17 rotate <10, 20, 30> scale 0.82 }
#local R = rand(Rng1);
#if (R<0.20)
texture { T_Wood17 rotate <10, 20, 30> scale 0.82 }
#else
texture { T_Wood15 rotate <17, 28, 39> scale 1.42 }
#end
translate y*0.10 // why ?
}
#end
/* ------------------------------------------------------------ */
#macro HW_une_patte ()
merge {
sphere { 0, 0.025 scale <1, 0.24, 1> translate 0.30*y }
cylinder { 0, 0.30*y, 0.025 }
sphere { 0, 0.07 scale <1, 0.29, 1> }
/* XXX */
#local RP = 0.042;
sphere { 0, RP scale <1, 0.84, 1> translate 0.35*y }
cylinder { 0, 0.35*y, RP }
sphere { 0, 0.09 scale <1, 0.29, 1> }
}
#local R = rand(Rng1);
#if ( R < 0.3 )
texture { Tinny_Brass }
#elseif ( R < 0.8 )
texture { New_Penny }
#else
texture { T_Brass_2C }
#end // if
#local R = rand(Rng1);
#if ( R < 0.3 ) texture { Tinny_Brass }
#elseif ( R < 0.8 ) texture { New_Penny }
#else texture { T_Brass_2C }
#end // if
#end // macro
/* ------------------------------------------------------------ */
#declare HW_les_pattes = object
{
union {
@@ -104,22 +110,23 @@ union {
}
}
/* ------------------------------------------------------------ */
#declare HW_Anneau0 = object
{
merge {
torus { Hc_rad*0.31, 0.06 scale <1, 0.55, 1> }
torus { Hc_rad*0.31, 0.0666 scale <1, 0.55, 1> }
#for (Foo, 0, 359, 60)
#local DX = Hc_rad*0.31 * sin(radians(Foo));
#local DZ = Hc_rad*0.31 * cos(radians(Foo));
#local HC = 0.30 + (0.03*rand(Rng2));
cone { 0, 0.035, y*HC, 0.0001 translate <DX, 0, DZ> }
cone { 0, 0.037, y*HC*1.2, 0.0001 translate <DX, 0, DZ> }
#end // FOR
}
texture { GoldDark }
rotate y * 45 * Cos_010(NormClock)
rotate y * 65 * Cos_010(NormClock)
translate y*0.32
}
/* ------------------------------------------------------------ */
#declare HexaWood = object
{
union {