summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--another.scad1
1 files changed, 0 insertions, 1 deletions
diff --git a/another.scad b/another.scad
index b2e6c74..2331003 100644
--- a/another.scad
+++ b/another.scad
@@ -304,49 +304,48 @@ module the_extruder(
304 pushfit(pf); 304 pushfit(pf);
305 mirror([0,0,1]) { 305 mirror([0,0,1]) {
306 fh = 1.5* (filament_guide_d-filament_path_d)/2; 306 fh = 1.5* (filament_guide_d-filament_path_d)/2;
307 fo = pf_offset -filament_path_d /*(idler_d+idler_clearance)/2*/-fh; 307 fo = pf_offset -filament_path_d /*(idler_d+idler_clearance)/2*/-fh;
308 translate([0,0,-1]) teardrop(d=filament_guide_d,h=fo/2,angle=225); 308 translate([0,0,-1]) teardrop(d=filament_guide_d,h=fo/2,angle=225);
309 translate([0,0,-1]) teardrop(d=filament_path_d,h=gearbox_d/2+1,angle=-225); 309 translate([0,0,-1]) teardrop(d=filament_path_d,h=gearbox_d/2+1,angle=-225);
310 translate([0,0,fo+epsilon]) 310 translate([0,0,fo+epsilon])
311 cylinder(d1=filament_path_d,d2=filament_guide_d,h=fh,$fn=fnd*filament_guide_d); 311 cylinder(d1=filament_path_d,d2=filament_guide_d,h=fh,$fn=fnd*filament_guide_d);
312 }//mirror 312 }//mirror
313 }//rotate translate rotate translate rotate translate 313 }//rotate translate rotate translate rotate translate
314 // pulley 314 // pulley
315 cylinder(d=pulley_d+pulley_small_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance)); 315 cylinder(d=pulley_d+pulley_small_d_clearance,h=body_h+1,$fn=fnd*(pulley_d+pulley_d_clearance));
316 cylinder(d=pulley_d+pulley_d_clearance,ls_z-max(idler_h,filament_guide_d)/2,$fn=fnd*(pulley_d+pulley_d_clearance)); 316 cylinder(d=pulley_d+pulley_d_clearance,ls_z-max(idler_h,filament_guide_d)/2,$fn=fnd*(pulley_d+pulley_d_clearance));
317 317
318 translate([0,0,ls_z-ls_h/2]) { 318 translate([0,0,ls_z-ls_h/2]) {
319 // idler travel 319 // idler travel
320 translate([mount_d/2,0,0]) 320 translate([mount_d/2,0,0])
321 rotate([0,0,45]) 321 rotate([0,0,45])
322 rotate_extrude(angle=90,$fn=fnr*(shortwing+(idler_d+idler_clearance)/2)) 322 rotate_extrude(angle=90,$fn=fnr*(shortwing+(idler_d+idler_clearance)/2))
323 square([shortwing+(idler_d+idler_clearance)/2,ls_h]); 323 square([shortwing+(idler_d+idler_clearance)/2,ls_h]);
324 // idler itself 324 // idler itself
325 place_idler() 325 place_idler()
326 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance)); 326 cylinder(d=idler_d+idler_clearance,h=ls_h,$fn=fnd*(idler_d+idler_clearance));
327 // lever space 327 // lever space
328 echo(atan(1-2*fsw/gearbox_d));
329 rotate([0,0,45]) 328 rotate([0,0,45])
330 rotate_extrude(angle=-135+max(atan(2*fsw/gearbox_d-1),atan(gearbox_d/mount_d-1))) 329 rotate_extrude(angle=-135+max(atan(2*fsw/gearbox_d-1),atan(gearbox_d/mount_d-1)))
331 square([gearbox_d/2+1,ls_h]); 330 square([gearbox_d/2+1,ls_h]);
332 } 331 }
333 332
334 // back side cutout 333 // back side cutout
335 // XXX: this is somewhat ugly and potentially bugged, 334 // XXX: this is somewhat ugly and potentially bugged,
336 // but I want to sleep. 335 // but I want to sleep.
337 a0_ = atan( 336 a0_ = atan(
338 (mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2) 337 (mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2)
339 / 338 /
340 ( 339 (
341 pulley_d/2+filament_offset- 340 pulley_d/2+filament_offset-
342 (pf_d(pf)+2*pf_shell)/2/cos(30) 341 (pf_d(pf)+2*pf_shell)/2/cos(30)
343 ) 342 )
344 ); 343 );
345 a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ ); 344 a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ );
346 a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); 345 a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2));
347 translate([0,0,ls_z]) difference() { 346 translate([0,0,ls_z]) difference() {
348 rotate([0,0,-180+a0]) 347 rotate([0,0,-180+a0])
349 rotate_extrude(angle=a1-a0) 348 rotate_extrude(angle=a1-a0)
350 translate([0,-ls_h/2]) 349 translate([0,-ls_h/2])
351 square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, 350 square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1,
352 ls_h]); 351 ls_h]);