better hole borders

This commit is contained in:
Tonton Th 2026-02-11 00:00:47 +01:00
parent f1fcebd77d
commit fe3bdff7dd

View File

@ -9,20 +9,38 @@
/* /*
* nouveau : Tue Feb 10 12:42:43 AM UTC 2026 * nouveau : Tue Feb 10 12:42:43 AM UTC 2026
*/ */
#macro HoleBorder (V) #macro HoleBorder_A (V)
difference { difference {
#local RA = V * R_hole * 1.005; #local RA = V * R_hole * 1.004;
#local RB = V * R_hole * 0.995; #local RB = V * R_hole * 0.996;
cylinder { 0, y*0.22, RA } cylinder { 0, y*0.42, RA }
cylinder { -y, y*2, RB } 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); #local R = rand(Rng1);
#if (R < 0.50) #if (R < 0.42) texture { LeGris }
texture { LeGris } #else texture { T_Beton_1 }
#else
texture { T_Beton_1 }
#end #end
} }
#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 * new Tue Dec 30 07:39:09 AM UTC 2025