From f91c00bd74313f7a123919259ea3a7f836f76f0a Mon Sep 17 00:00:00 2001 From: Ajabep Date: Wed, 14 Jan 2026 17:26:49 +0100 Subject: [PATCH] Fix anti-aliasing problem in preview Was solve previously with magic value and was not documented. --- c3cat-bottle-clip/c3cat-bottle-clip.scad | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/c3cat-bottle-clip/c3cat-bottle-clip.scad b/c3cat-bottle-clip/c3cat-bottle-clip.scad index c8dbaf9..c33dcdb 100644 --- a/c3cat-bottle-clip/c3cat-bottle-clip.scad +++ b/c3cat-bottle-clip/c3cat-bottle-clip.scad @@ -209,8 +209,10 @@ module bottle_clip(ru=13, rl=17.5, ht=26, width=2.5, name="c3cat", font="write/o } cylinder(r1=rl+width/2, r2=ru+width/2, h=ht); } - translate([0, 0, -1]) - cylinder(r1=rl, r2=ru, h=ht+2); + + clear_anti_aliasing = 0.01; // The margin to avoid empty surfaces in the preview. + translate([0, 0, -clear_anti_aliasing/2]) + cylinder(r1=rl, r2=ru, h=ht+clear_anti_aliasing); // finally, subtract a cube as a gap so we can clip it to the bottle rotate([0, 0, 45]) translate([0, 0, -1])