From ceb4dea90712c544ea980345a83daa8a6b82ee98 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Tue, 10 Feb 2026 04:08:49 +0100 Subject: [PATCH] add border to the hole --- contexte.inc | 13 +++++++++---- xperiment.inc | 21 ++++++++++++++++++++- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/contexte.inc b/contexte.inc index b84e040..0a37dfd 100644 --- a/contexte.inc +++ b/contexte.inc @@ -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 diff --git a/xperiment.inc b/xperiment.inc index a7c1549..0bcdf5a 100644 --- a/xperiment.inc +++ b/xperiment.inc @@ -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> }