very small refactoring
This commit is contained in:
		
							parent
							
								
									3535e16a20
								
							
						
					
					
						commit
						71cce4f60c
					
				| @ -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 CK = NormClock * 2 * 3.141592654; | ||||||
| 
 | 
 | ||||||
| #declare CamX = R_circ * cos(CK); | #declare CamX = R_circ * cos(CK); | ||||||
|  | |||||||
| @ -118,7 +118,7 @@ union	{ | |||||||
| 
 | 
 | ||||||
| union	{ | union	{ | ||||||
| 	#for (Ang, 0, 359, 15)
 | 	#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 Ra = radians(Ang);
 | ||||||
| 	  #local Xp = E * cos(Ra);
 | 	  #local Xp = E * cos(Ra);
 | ||||||
| 	  #local Zp = E * sin(Ra);
 | 	  #local Zp = E * sin(Ra);
 | ||||||
| @ -234,9 +234,6 @@ union	{ | |||||||
| 	} | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* ======================================================= */ |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| /* ======================================================= */ | /* ======================================================= */ | ||||||
| /* | /* | ||||||
|  *	nouvel éclairage du 10 février 2025 |  *	nouvel éclairage du 10 février 2025 | ||||||
|  | |||||||
| @ -40,7 +40,7 @@ prism { | |||||||
| 
 | 
 | ||||||
| #macro HexaPole_tubes ()
 | #macro HexaPole_tubes ()
 | ||||||
| #local R = 0.06;
 | #local R = 0.06;
 | ||||||
| #local E = 0.666666;
 | #local E = 0.725;
 | ||||||
| #local H = H_cone*3;
 | #local H = H_cone*3;
 | ||||||
| union { | union { | ||||||
| 	#for (A, 0, 359, 60)
 | 	#for (A, 0, 359, 60)
 | ||||||
| @ -50,7 +50,7 @@ union { | |||||||
| 		#local H2 = H + rand(Rng1) + rand(Rng1);
 | 		#local H2 = H + rand(Rng1) + rand(Rng1);
 | ||||||
| 		cylinder { 0, y*H2, R } | 		cylinder { 0, y*H2, R } | ||||||
| 		sphere { 0, R*2 scale <1, 0.666, 1> } | 		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);
 | 		  #local Ra = rand(Rng1);
 | ||||||
| 		#if (Ra < 0.30)
 | 		#if (Ra < 0.30)
 | ||||||
| 		  texture { T_Chrome_1A } | 		  texture { T_Chrome_1A } | ||||||
| @ -72,6 +72,9 @@ union { | |||||||
| #end
 | #end
 | ||||||
| 
 | 
 | ||||||
| //  ------------------------------------------------------ ##
 | //  ------------------------------------------------------ ##
 | ||||||
|  | /* | ||||||
|  |  *	l'assemblage de ces trucs est dans "contexte.inc" | ||||||
|  |  */ | ||||||
| 
 | 
 | ||||||
| #macro HexaPole ()
 | #macro HexaPole ()
 | ||||||
| union	{ | union	{ | ||||||
|  | |||||||
| @ -39,6 +39,8 @@ global_settings	{ | |||||||
| #declare H_QuadriLight = 34;
 | #declare H_QuadriLight = 34;
 | ||||||
| #declare E_QuadriLight = SzSol * 1.35;
 | #declare E_QuadriLight = SzSol * 1.35;
 | ||||||
| 
 | 
 | ||||||
|  | #declare R_circular = (SzSol * 1.40);
 | ||||||
|  | 
 | ||||||
| /* ------------------------------------------------------------ */ | /* ------------------------------------------------------------ */ | ||||||
| /* | /* | ||||||
|  *	Some textures... |  *	Some textures... | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tonton Th
						Tonton Th