commits du dimanche soir, espoir

This commit is contained in:
Tonton Th
2026-01-04 23:01:37 +01:00
parent 90894f8008
commit 111a7519f1
27 changed files with 153 additions and 59 deletions

View File

@@ -8,44 +8,47 @@
/* ============================================================ */
/* Un des six éléments de base */
#declare HS_element_a = object
{
union {
cone { <-4, 0, 0>, 0.05, <-1, 0, 0>, 1.00 }
cone { < 4, 0, 0>, 0.05, < 1, 0, 0>, 1.00 }
#declare HS_radius = 0.496;
#macro HS_element_a ()
union {
#local R_a = 0.18;
#local Small = 0.00001;
cone { <-1.5, 0, 0>, Small, <-0.6, 0, 0>, R_a }
sphere { 0, R_a scale <0.3, 1, 1> translate <-0.6, 0, 0> }
cone { < 1.5, 0, 0>, Small, < 0.6, 0, 0>, R_a }
sphere { 0, R_a scale <0.3, 1, 1> translate < 0.6, 0, 0> }
#local R = rand(Rng1);
#if ( R < 0.50 ) texture { GoldDark }
#else texture { T_Gold_3C }
#end
}
}
#end // macro
/* ------------------------------------------------------------ */
#declare HS_element_b = object
/*
* element central
*/
#declare HS_element_central = object
{
difference {
cylinder { <-1, 0, 0>, <1, 0, 0>, 0.70 }
box { 0, <1, 1, 1> }
}
}
/* ------------------------------------------------------------ */
#declare HS_element = object
{
union {
object { HS_element_a texture { GoldDark } }
object { HS_element_b texture { G_Texture } }
}
torus { HS_radius, 0.019 scale <1, 15.92, 1> rotate z*90 }
texture { Gold_Nugget }
}
/* ============================================================ */
/* On regroupe les six élements */
#declare HS_les_elements = object
{
union {
#for (Foo, 0, 360, 60)
#local E = 0.31;
#local Tx = E * sin(radians(Foo));
#local E = HS_radius;
#local Ty = E * cos(radians(Foo));
#local Tz = E * sin(radians(Foo));
object {
HS_element
rotate -z*foo
translate <Tx, Ty, 0>
HS_element_a ()
translate <0, Ty, Tz>
}
#end // end for
#end // end for
object { HS_element_central }
}
}
/* ============================================================ */
@@ -54,4 +57,6 @@ union {
{
object { HS_les_elements }
}
// #debug "++++++++++ hexastar loaded !\n"
/* ============================================================ */