From fe3bdff7dd8f6678c81afd03f56704a4af96f727 Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Wed, 11 Feb 2026 00:00:47 +0100 Subject: [PATCH] better hole borders --- xperiment.inc | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/xperiment.inc b/xperiment.inc index cf4b86f..78c066f 100644 --- a/xperiment.inc +++ b/xperiment.inc @@ -9,20 +9,38 @@ /* * nouveau : Tue Feb 10 12:42:43 AM UTC 2026 */ -#macro HoleBorder (V) +#macro HoleBorder_A (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 RA = V * R_hole * 1.004; + #local RB = V * R_hole * 0.996; + cylinder { 0, y*0.42, RA } + cylinder { -y, y*2, RB } + #for (foo, 0, 179, 6) + cylinder { + <-20, 0, 0>, < 20, 0, 0>, 0.07 + scale <1, 2, 1> translate y*0.21 + rotate y*foo + } + #end // for #local R = rand(Rng1); - #if (R < 0.50) - texture { LeGris } - #else - texture { T_Beton_1 } + #if (R < 0.42) texture { LeGris } + #else texture { T_Beton_1 } #end } #end +/* --------------------------------------------------------------- */ +#macro HoleBorder_B (V) +union { + #local Ra = R_hole * 1.02; + #local Rb = 0.04; + torus { Ra, Rb texture { tPlasticBlue } + translate y*0.50 } + torus { Ra, Rb texture { T_WIP_color } + translate y*0.80 } + torus { Ra, Rb texture { T_WIP_dents } + translate y*1.10 } + } +#end /* =============================================================== */ /* * new Tue Dec 30 07:39:09 AM UTC 2025