From fc5c22aeb877892c1caabf628d2bc675de681ff3 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 01 Sep 2018 15:04:55 +0000 Subject: cap springpad calculations for longer screws --- diff --git a/another.scad b/another.scad index 8ba0d58..6bb0664 100644 --- a/another.scad +++ b/another.scad @@ -395,7 +395,7 @@ module the_extruder( smalld=st_screw_d+st_screw_d_tolerance+min_xy_shell; bigd = spring_d+spring_d_clearance/2; hf = (bigd-smalld)/2; - h = max(hf,fsw-st_screw_l+hf); + h = max(hf*2,fsw-st_screw_l+hf); translate([-gearbox_d/2+fsw-h,-longwing,filament_elevation]) rotate([0,90,0]) difference() { union() { @@ -413,7 +413,8 @@ module the_extruder( } } translate([0,0,-epsilon]) - cylinder(d=st_screw_d+st_screw_d_tolerance,h=st_screw_l-fsw+h+2*epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); + cylinder(d=st_screw_d+st_screw_d_tolerance, + h=min(st_screw_l,fsw-hf)-fsw+h+2*epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); } } -- cgit v0.9.0.2