summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show 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
@@ -107,6 +107,8 @@ module the_extruder(
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;
@@ -160,7 +162,7 @@ module the_extruder(
}//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
@@ -254,7 +256,7 @@ module the_extruder(
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() {
@@ -282,7 +284,6 @@ module the_extruder(
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])
@@ -321,7 +322,7 @@ module the_extruder(
// 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-