summaryrefslogtreecommitdiff
authorMichael Krelin <hacker@klever.net>2018-08-21 18:00:15 (UTC)
committer Michael Krelin <hacker@klever.net>2018-08-21 18:00:15 (UTC)
commiteb49701c13f76640936e7a2a7a138bd92617b147 (patch) (side-by-side diff)
treee8e4629a861c5e9bfc15a5c6d09e471aa2bc1b38
parentfc213f6b29f62795ce33d0e0acdea1e6a6b0fffb (diff)
downloadextrudery-eb49701c13f76640936e7a2a7a138bd92617b147.zip
extrudery-eb49701c13f76640936e7a2a7a138bd92617b147.tar.gz
extrudery-eb49701c13f76640936e7a2a7a138bd92617b147.tar.bz2
adjustments to screw mount depth
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--another.scad15
1 files changed, 11 insertions, 4 deletions
diff --git a/another.scad b/another.scad
index 6afa9ef..6ef7299 100644
--- a/another.scad
+++ b/another.scad
@@ -13,2 +13,3 @@ module the_extruder(
mounthole_depth = 5,
+ mounthole_min_depth = 3, mounthole_max_depth = 4,
protrusion_d = 22, protrusion_h = 2.2, // the dimensions of the protrusion on top of gearbox
@@ -64,2 +65,4 @@ module the_extruder(
+ min_z_shell = 4*layer_height, // the very minimal shell thickness along z-axis.
+
what="lever", // lever|body|knob|springpad|*
@@ -82,6 +85,10 @@ module the_extruder(
+ mount_min_depth = mounthole_min_depth ? mounthole_min_depth : mounthole_depth-1;
+ mount_max_depth = mounthole_max_depth ? mounthole_max_depth : mounthole_depth+1;
filament_elevation=protrusion_h+pulley_elevation+teeth_elevation;
ls_z = filament_elevation; // leverspace mid-z
- body_h = max(protrusion_h+bore_l,mount_screw_l-mounthole_depth/2+mount_screwhead_h,ls_z*2);
ls_h = lever_thickness+lever_v_clearance; // leverspace height
+ mount_depth = mount_screw_l - (ls_z+ls_h/2+min_z_shell);
+ body_h = max(protrusion_h+bore_l,mount_screw_l-mount_depth+mount_screwhead_h+min_z_shell,ls_z*2);
+ echo("mount depth",mount_depth);
@@ -290,8 +297,8 @@ module the_extruder(
for(zr=[0:90:359]) rotate([0,0,zr]) translate([mount_d/2,0,0]) {
- translate([0,0,mount_screw_l-mounthole_depth/2-(bridges?layer_height:-epsilon)])
+ translate([0,0,mount_screw_l-mount_depth-(bridges?layer_height:-epsilon)])
mirror([0,0,1])
cylinder(d=mount_screw_d+mount_screw_d_tolerance,
- h=mount_screw_l-mounthole_depth/2+1,
+ h=mount_screw_l-mount_depth+1,
$fn=fnd*(mount_screw_d+mount_screw_d_tolerance));
- translate([0,0,mount_screw_l-mounthole_depth/2])
+ translate([0,0,mount_screw_l-mount_depth])
cylinder(d=mount_screwhead_d,h=body_h+1,$fn=fnd*mount_screwhead_d);