WIP Adding Teardrop
This commit is contained in:
24
inserts.scad
24
inserts.scad
@@ -14,14 +14,23 @@ module insert_clear(
|
||||
od=4.8,
|
||||
il=3.81,
|
||||
sh=0,
|
||||
drop=false,
|
||||
) {
|
||||
|
||||
ic = in_color() ? "gold" : undef;
|
||||
bc = in_color() ? "silver" : undef;
|
||||
ftdside=fd/(2*sqrt(2));
|
||||
tdside=od/(2*sqrt(2));
|
||||
// Insert Body
|
||||
translate([0,0,-fh]) color(ic) union() {
|
||||
cylinder(d=fd, h=fh+.01);
|
||||
translate([0,0,-(il-fh)]) cylinder(d=od,h=il-fh-sh);
|
||||
hull() {
|
||||
cylinder(d=fd, h=fh+.01);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
// Bolt
|
||||
@@ -29,16 +38,21 @@ module insert_clear(
|
||||
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,bz]) cylinder(d=bd, h=-(bz+il)) ; // bolt
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module m4s_clear( bl=8, bz=-3.81, bhd=6, bhz=3.5, sh=.2) {
|
||||
insert_clear(bl=bl, bz=bz, bhd=bhd, bhz=bhz, bd=3.5, fd=5.6, fh=.5, od=4.8, il=3.81, sh=sh);
|
||||
module m4s_clear( bl=8, bz=-3.81, bhd=6, bhz=3.5, sh=.2, drop=false) {
|
||||
insert_clear(bl=bl, bz=bz, bhd=bhd, bhz=bhz, bd=3.5, fd=5.6, fh=.5, od=4.8, il=3.81, sh=sh, drop=drop);
|
||||
}
|
||||
|
||||
//m4s_clear(bl=10,bz=-5, drop=true);
|
||||
|
||||
module m3s_clear( bl=8, bz=-4.7, bhd=7.5, bhz=4, sh=.2) {
|
||||
insert_clear(bl=bl, bz=bz, bhd=bhd, bhz=bhz, bd=4.5, fd=6.35, fh=.5, od=5, il=4.7, sh=sh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user