From 32b8dbd19b009091567d8e73636ffa50ea2d6335 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 01 Sep 2018 14:47:19 +0000 Subject: better calculate springpad size --- diff --git a/another.scad b/another.scad index faa41da..92187c5 100644 --- a/another.scad +++ b/another.scad @@ -390,8 +390,8 @@ 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 = hf*3.5; - translate([-gearbox_d/2+st_thickshell+st_nut_h+st_nut_h_tolerance+st_thinshell+1,-longwing,filament_elevation]) + h = max(hf,fsw-st_screw_l+hf); + translate([-gearbox_d/2+fsw-h,-longwing,filament_elevation]) rotate([0,90,0]) difference() { union() { cylinder(d1=smalld,d2=bigd,h=hf,$fn=fnd*bigd); @@ -408,7 +408,7 @@ module the_extruder( } } translate([0,0,-epsilon]) - cylinder(d=st_screw_d+st_screw_d_tolerance,h=2*hf+epsilon,$fn=fnd*(st_screw_d+st_screw_d_tolerance)); + 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)); } } -- cgit v0.9.0.2