Teardrops for bolts
This commit is contained in:
20
inserts.scad
20
inserts.scad
@@ -24,23 +24,31 @@ module insert_clear(
|
||||
// Insert Body
|
||||
translate([0,0,-fh]) color(ic) union() {
|
||||
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);
|
||||
}
|
||||
translate([0,0,-(il-fh)]) hull() {
|
||||
cylinder(d=od,h=il-fh-sh);
|
||||
if (drop) translate([0,od/2,(il-fh-sh)/2])rotate([0,0,45])cube([tdside,tdside,il-fh-sh], center=true);
|
||||
cylinder(d=od,h=il-fh-sh+.02);
|
||||
if (drop) translate([0,od/2,(il-fh-sh)/2-.01])rotate([0,0,45])cube([tdside,tdside,il-fh-sh], center=true);
|
||||
}
|
||||
}
|
||||
|
||||
// Bolt
|
||||
color(bc) {
|
||||
bds = bd/(2*sqrt(2));
|
||||
bhds = bd/(2*sqrt(2));
|
||||
union() {
|
||||
translate([0,0,bl+bz]) cylinder(d=bhd, h=bhz); // bolt head
|
||||
translate([0,0,0]) cylinder(d=bd, h=bl+bz-sh); // bolt
|
||||
translate([0,0,bl+bz]) hull() {
|
||||
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() {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user