downsizing hexastar

This commit is contained in:
Tonton Th 2026-01-08 11:43:50 +01:00
parent 6032290f5e
commit eda56a4ac1

View File

@ -8,15 +8,15 @@
/* ============================================================ */ /* ============================================================ */
/* Un des six éléments de base */ /* Un des six éléments de base */
#declare HS_radius = 0.418; #declare HS_radius = 0.407;
#macro HS_element_a () #macro HS_element_a ()
union { union {
#local R_a = HS_radius * 0.33333; #local R_a = HS_radius * 0.33333;
#local Small = 0.00001; #local Small = 0.00001;
cone { <-1.4, 0, 0>, Small, <-0.6, 0, 0>, R_a } cone { <-1.34, 0, 0>, Small, <-0.6, 0, 0>, R_a }
sphere { 0, R_a scale <0.3, 1, 1> translate <-0.6, 0, 0> } sphere { 0, R_a scale <0.3, 1, 1> translate <-0.6, 0, 0> }
cone { < 1.4, 0, 0>, Small, < 0.6, 0, 0>, R_a } cone { < 1.34, 0, 0>, Small, < 0.6, 0, 0>, R_a }
sphere { 0, R_a scale <0.3, 1, 1> translate < 0.6, 0, 0> } sphere { 0, R_a scale <0.3, 1, 1> translate < 0.6, 0, 0> }
#local R = rand(Rng1); #local R = rand(Rng1);
#if ( R < 0.50 ) texture { GoldDark } #if ( R < 0.50 ) texture { GoldDark }
@ -26,12 +26,24 @@ union {
#end // macro #end // macro
/* ------------------------------------------------------------ */ /* ------------------------------------------------------------ */
/* /*
* element central * element central --- À REFAIRE EN MACRO !
*/ */
#declare HS_element_central = object #declare HS_element_central = object
{ {
torus { HS_radius, 0.0182 scale <1, 25.90, 1> rotate z*90 } union {
texture { Gold_Nugget } torus { HS_radius*0.93, 0.0180 }
#local L = 0.0035;
cylinder { -y*L, y*L, 0.057 }
sphere { 0, 0.057 translate -y*L }
sphere { 0, 0.057 translate y*L }
}
scale <1, 25.90, 1>
rotate z*90
#local R = rand(Rng1);
#if ( R < 0.33 ) texture { Y_Texture }
#elseif ( R < 0.66 ) texture { T_Gold_1A }
#else texture { Aluminum }
#end
} }
/* ============================================================ */ /* ============================================================ */