very small refactoring

This commit is contained in:
Tonton Th 2025-06-19 14:54:49 +02:00
parent 3535e16a20
commit 71cce4f60c
4 changed files with 9 additions and 7 deletions

View File

@ -21,7 +21,7 @@ object { Le_Decor }
// =======================================================
#declare R_circ = (SzSol * 1.40);
#declare R_circ = R_circular + 2;
#declare CK = NormClock * 2 * 3.141592654;
#declare CamX = R_circ * cos(CK);

View File

@ -118,7 +118,7 @@ union {
union {
#for (Ang, 0, 359, 15)
#local E = (SzSol * 1.40) + (8*rand(Rng1));
#local E = R_circular + (8*rand(Rng1));
#local Ra = radians(Ang);
#local Xp = E * cos(Ra);
#local Zp = E * sin(Ra);
@ -234,9 +234,6 @@ union {
}
}
/* ======================================================= */
/* ======================================================= */
/*
* nouvel éclairage du 10 février 2025

View File

@ -40,7 +40,7 @@ prism {
#macro HexaPole_tubes ()
#local R = 0.06;
#local E = 0.666666;
#local E = 0.725;
#local H = H_cone*3;
union {
#for (A, 0, 359, 60)
@ -50,7 +50,7 @@ union {
#local H2 = H + rand(Rng1) + rand(Rng1);
cylinder { 0, y*H2, R }
sphere { 0, R*2 scale <1, 0.666, 1> }
sphere { 0, R*2 scale <1, 0.666, 1> translate y*H2 }
sphere { 0, R*2 scale <1, 0.555, 1> translate y*H2 }
#local Ra = rand(Rng1);
#if (Ra < 0.30)
texture { T_Chrome_1A }
@ -72,6 +72,9 @@ union {
#end
// ------------------------------------------------------ ##
/*
* l'assemblage de ces trucs est dans "contexte.inc"
*/
#macro HexaPole ()
union {

View File

@ -39,6 +39,8 @@ global_settings {
#declare H_QuadriLight = 34;
#declare E_QuadriLight = SzSol * 1.35;
#declare R_circular = (SzSol * 1.40);
/* ------------------------------------------------------------ */
/*
* Some textures...