-rw-r--r-- | another.scad | 9 |
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( | |||
107 | body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); | 107 | body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2); |
108 | echo("mount depth",mount_depth); | 108 | echo("mount depth",mount_depth); |
109 | 109 | ||
110 | pf_offset = mount_d/sqrt(2)/2+mount_screw_d/2+min_xy_shell; | ||
111 | |||
110 | module teardrop(r,d,h,center=false,angle=45) { | 112 | module teardrop(r,d,h,center=false,angle=45) { |
111 | dd = d ? d : (2*r); | 113 | dd = d ? d : (2*r); |
112 | $fn = dd*fnd; | 114 | $fn = dd*fnd; |
@@ -160,7 +162,7 @@ module the_extruder( | |||
160 | }//rotate translate | 162 | }//rotate translate |
161 | translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) { | 163 | translate([pulley_d/2+filament_offset,0,0]) rotate([-90,0,0]) { |
162 | cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15); | 164 | cylinder(d=filament_d,h=gearbox_d,center=false,$fn=15); |
163 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d]) | 165 | translate([0,0,pf_offset]) |
164 | pushfit(pf); | 166 | pushfit(pf); |
165 | }//rotate translate | 167 | }//rotate translate |
166 | }//rotate | 168 | }//rotate |
@@ -254,7 +256,7 @@ module the_extruder( | |||
254 | translate([0,0,filament_elevation]) | 256 | translate([0,0,filament_elevation]) |
255 | rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) | 257 | rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) |
256 | rotate([-90,0,0]) | 258 | rotate([-90,0,0]) |
257 | translate([0,0,mount_d/sqrt(2)/2+mount_screw_d-gearbox_d/2/*TODO:*/]) { | 259 | translate([0,0,pf_offset-gearbox_d/2/*TODO:*/]) { |
258 | pfbl = pf_h(pf)+gearbox_d/2; //TODO: | 260 | pfbl = pf_h(pf)+gearbox_d/2; //TODO: |
259 | pfbd = pf_d(pf)+2*pf_shell; | 261 | pfbd = pf_d(pf)+2*pf_shell; |
260 | hull() { | 262 | hull() { |
@@ -282,7 +284,6 @@ module the_extruder( | |||
282 | cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d); | 284 | cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d); |
283 | }//for | 285 | }//for |
284 | // pushfit | 286 | // pushfit |
285 | pf_offset = mount_d/sqrt(2)/2+mount_screw_d; | ||
286 | translate([0,0,filament_elevation]) | 287 | translate([0,0,filament_elevation]) |
287 | rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) | 288 | rotate([0,0,45]) translate([pulley_d/2+filament_offset,0,0]) |
288 | rotate([-90,0,0]) | 289 | rotate([-90,0,0]) |
@@ -321,7 +322,7 @@ module the_extruder( | |||
321 | // XXX: this is somewhat ugly and potentially bugged, | 322 | // XXX: this is somewhat ugly and potentially bugged, |
322 | // but I want to sleep. | 323 | // but I want to sleep. |
323 | a0_ = atan( | 324 | a0_ = atan( |
324 | (mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2) | 325 | (pf_offset+pf_h(pf)+gearbox_d/2) |
325 | / | 326 | / |
326 | ( | 327 | ( |
327 | pulley_d/2+filament_offset- | 328 | pulley_d/2+filament_offset- |