-rw-r--r-- | another.scad | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/another.scad b/another.scad index f54c5cd..b80d0d0 100644 --- a/another.scad +++ b/another.scad | |||
@@ -322,18 +322,27 @@ module the_extruder( | |||
322 | } | 322 | } |
323 | 323 | ||
324 | // back side cutout | 324 | // back side cutout |
325 | a0 = asin((mount_screwhead_d+2*extrusion_width)/mount_d); | 325 | // XXX: this is somewhat ugly and potentially bugged, |
326 | // but I want to sleep. | ||
327 | a0_ = atan( | ||
328 | (mount_d/sqrt(2)/2+mount_screw_d+pf_h(pf)+gearbox_d/2) | ||
329 | / | ||
330 | ( | ||
331 | pulley_d/2- | ||
332 | (pf_d(pf)+2*pf_shell)/2/cos(30) | ||
333 | ) | ||
334 | ); | ||
335 | a0 = -135 + ( (a0_>0) ? a0_ : 180+a0_ ); | ||
326 | a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); | 336 | a1 = atan((longwing-lever_thickness/2)/(gearbox_d/2)); |
327 | translate([0,0,ls_z]) hull() { | 337 | translate([0,0,ls_z]) difference() { |
328 | rotate([0,0,-180+a0]) | 338 | rotate([0,0,-180+a0]) |
329 | rotate_extrude(angle=a1-a0) | 339 | rotate_extrude(angle=a1-a0) |
330 | translate([0,-ls_h/2]) | 340 | translate([0,-ls_h/2]) |
331 | square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, | 341 | square([sqrt(pow(gearbox_d/2,2)+pow(longwing-lever_thickness/2,2))+1, |
332 | ls_h]); | 342 | ls_h]); |
333 | cylinder(d=bore_d/2/*TODO:recalculate angles based on this, | 343 | translate([-mount_d/2,0,0]) |
334 | too lazy to do that now*/, | 344 | cylinder(d=gearbox_d-mount_d,h=ls_h+2,center=true,$fn=fnd*(gearbox_d-mount_d)); |
335 | h=ls_h,center=true); | 345 | }//difference translate |
336 | } | ||
337 | 346 | ||
338 | rotate([0,0,-45]) | 347 | rotate([0,0,-45]) |
339 | translate([0,0,ls_z-ls_h/2]) | 348 | translate([0,0,ls_z-ls_h/2]) |