Code cleaning + add ears to the bottle clip! #22

Open
ajabep wants to merge 23 commits from ajabep/scad:trunk into trunk
Showing only changes of commit f91c00bd74 - Show all commits

Fix anti-aliasing problem in preview

Was solve previously with magic value and was not documented.
Ajabep 2026-01-14 17:26:49 +01:00

View file

@ -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); 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 // finally, subtract a cube as a gap so we can clip it to the bottle
rotate([0, 0, 45]) rotate([0, 0, 45])
translate([0, 0, -1]) translate([0, 0, -1])