summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-09-01 11:29:30 (UTC)
committer Michael Krelin <hacker@klever.net>2018-09-01 11:29:30 (UTC)
commit8dd62c375a2df44eaa42a4ac58905f15d4b17cca (patch) (side-by-side diff)
tree8367f583086adf69cd40eba8cdda9e61a9ef4936
parent3c20c090273e3f87fc3d0e50d031400f57aff238 (diff)
downloadextrudery-8dd62c375a2df44eaa42a4ac58905f15d4b17cca.zip
extrudery-8dd62c375a2df44eaa42a4ac58905f15d4b17cca.tar.gz
extrudery-8dd62c375a2df44eaa42a4ac58905f15d4b17cca.tar.bz2
move pushfit a tiny bit closer
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad9
1 files changed, 5 insertions, 4 deletions
diff --git a/another.scad b/another.scad
index 0d67286..8334b11 100644
--- a/another.scad
+++ b/another.scad
@@ -106,8 +106,10 @@ module the_extruder(
mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell);
body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2);
echo("mount depth",mount_depth);
+ pf_offset = mount_d/sqrt(2)/2+mount_screw_d/2+min_xy_shell;
+
module teardrop(r,d,h,center=false,angle=45) {
dd = d ? d : (2*r);
$fn = dd*fnd;
cylinder(d=dd,h=h,center=center);
@@ -159,9 +161,9 @@ module the_extruder(
cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
}//rotate translate
translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) {
cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15);
- translate([0,0,mount_d/sqrt(2)/2+mount_screw_d])
+ translate([0,0,pf_offset])
pushfit(pf);
}//rotate translate
}//rotate
}//translate teeth
@@ -253,9 +255,9 @@ module the_extruder(
// pushfit bracket
translate([0,0,filament_elevation])
rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
rotate([-90,0,0])
- translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) {
+ translate([0,0,pf_offset-gearbox_d/2/*TODO:*/]) {
pfbl = pf_h(pf)+gearbox_d/2; //TODO:
pfbd = pf_d(pf)+2*pf_shell;
hull() {
cylinder(d=pfbd,h=pfbl,$fn=pfbd*fnd);
@@ -281,9 +283,8 @@ module the_extruder(
translate([0,0,mount_screw_l-mount_depth])
cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d);
}//for
// pushfit
- pf_offset = mount_d/sqrt(2)/2+mount_screw_d;
translate([0,0,filament_elevation])
rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0])
rotate([-90,0,0])
translate([0,0,pf_offset])
@@ -320,9 +321,9 @@ module the_extruder(
// back side cutout
// XXX: this is somewhat ugly and potentially bugged,
// but I want to sleep.
a0_ = atan(
- (mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2)
+ (pf_offset+pf_h(pf)+gearbox_d/2)
/
(
pulley_d/2+filament_offset-
(pf_d(pf)+2*pf_shell)/2/cos(30)