Teardrops for bolts

This commit is contained in:
2025-01-17 18:25:40 -05:00
parent 1acfaf36e4
commit 9567de2f3e

View File

@@ -24,23 +24,31 @@ module insert_clear(
// Insert Body // Insert Body
translate([0,0,-fh]) color(ic) union() { translate([0,0,-fh]) color(ic) union() {
hull() { hull() {
cylinder(d=fd, h=fh+.01); cylinder(d=fd, h=fh+.02);
if (drop) translate([0,fd/2,fh/2+.01])rotate([0,0,45]) cube([ftdside,ftdside,fh+.01], center=true); if (drop) translate([0,fd/2,fh/2+.01])rotate([0,0,45]) cube([ftdside,ftdside,fh+.01], center=true);
} }
translate([0,0,-(il-fh)]) hull() { translate([0,0,-(il-fh)]) hull() {
cylinder(d=od,h=il-fh-sh); cylinder(d=od,h=il-fh-sh+.02);
if (drop) translate([0,od/2,(il-fh-sh)/2])rotate([0,0,45])cube([tdside,tdside,il-fh-sh], center=true); if (drop) translate([0,od/2,(il-fh-sh)/2-.01])rotate([0,0,45])cube([tdside,tdside,il-fh-sh], center=true);
} }
} }
// Bolt // Bolt
color(bc) { color(bc) {
bds = bd/(2*sqrt(2));
bhds = bd/(2*sqrt(2));
union() { union() {
translate([0,0,bl+bz]) cylinder(d=bhd, h=bhz); // bolt head translate([0,0,bl+bz]) hull() {
translate([0,0,0]) cylinder(d=bd, h=bl+bz-sh); // bolt cylinder(d=bhd, h=bhz+.01); // bolt head
if (drop) translate([0,bhd/2,bhz/2+.01])rotate([0,0,45]) cube([bhds,bhds,(bhz)+.01], center=true);
}
translate([0,0,0]) hull() {
cylinder(d=bd, h=bl+bz-sh); // bolt
if (drop) translate([0,bd/2,(bl+bz-sh)/2.01])rotate([0,0,45]) cube([bds,bds,bl+bz-sh], center=true);
}
translate([0,0,bz]) hull() { translate([0,0,bz]) hull() {
cylinder(d=bd, h=-(bz+il)) ; // bolt cylinder(d=bd, h=-(bz+il)) ; // bolt
if (drop) #translate([0,bd/2,-(bz+il)/2+.01])rotate([0,0,45]) cube([ftdside,ftdside,-(bz+il)+.01], center=true); if (drop) translate([0,bd/2,-(bz+il)/2+.01])rotate([0,0,45]) cube([bds,bds,-(bz+il)+.01], center=true);
} }
} }
} }