add border to the hole

This commit is contained in:
Tonton Th 2026-02-10 04:08:49 +01:00
parent 1bef5baa93
commit ceb4dea907
2 changed files with 29 additions and 5 deletions

View File

@ -11,7 +11,7 @@
#macro Trois_Portiques (Dist)
union {
object { Portique_A () }
object { Portique_A () scale <1, 1.1, 1> translate z*5 }
object { Portique_A () scale <1, 1.15, 1> translate z*5 }
object { Portique_A () translate z*10 }
// XXX scale 1.85
}
@ -255,14 +255,19 @@ difference {
box { <-Big, -0.21, -Big>, < Big, 0.0000, Big> }
#undef Big
#for (Foo, 0, 5)
cylinder { -y*5, y*5, 3.1 translate UnderHoles[Foo] }
cylinder { -y*5, y*5, R_hole translate UnderHoles[Foo] }
#end
texture { Ground_Texture }
}
}
/* XXX
* L'indispensable Repere est parti dans 'gadgets.inc' ! */
/* 10 fev 2026, on place des bordures autour des trous */
/* -> xperiment.inc */
#for (foo, 0, 5)
#local YHB = (0.08 + (0.5*rand(Rng1)) * y);
object { HoleBorder (1.14) translate YHB + UnderHoles[foo] }
#end
/* ======================================================= */
/*
* nouvel éclairage du 10 février 2025

View File

@ -4,6 +4,25 @@
* A cosy place for experimental things (2025/10/27)
*
*/
/* =============================================================== */
/*
* nouveau : Tue Feb 10 12:42:43 AM UTC 2026
*/
#macro HoleBorder (V)
difference {
#local RA = V * R_hole * 1.005;
#local RB = V * R_hole * 0.995;
cylinder { 0, y*0.22, RA }
cylinder { -y, y*2, RB }
#local R = rand(Rng1);
#if (R < 0.50)
texture { LeGris }
#else
texture { Flashy scale 38 }
#end
}
#end
/* =============================================================== */
/*
* new Tue Dec 30 07:39:09 AM UTC 2025
@ -12,7 +31,7 @@
{
union {
#local EX = 2.4;
#local EZ = 2.1 + (0.5*sin(NormClock));
#local EZ = 2.1 + (0.5*sin(NormClock*2));
object { Trident_A () rotate x*87 }
object { HexaBenz () translate <-EX, 0, -EZ> }
object { HexaCone () translate < EX, -0.4, -EZ> }