chiark / gitweb /
toolbox-inserts: RatchetHandle, break out ratchet_handle_head_end_x
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 May 2025 16:18:11 +0000 (17:18 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 May 2025 16:18:11 +0000 (17:18 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 81387ebdbf11ec23f82b72ea140491a6debf9a57..21835645a5319fbb40211b8158694f9c8c4755b5 100644 (file)
@@ -50,6 +50,7 @@ driver_handle_handle_d = 24.3 + 0.50;
 driver_handle_handle_rear_d = 21.7 / cos(30) + 0.50;
 driver_handle_handle_front_l = 20;
 
+ratchet_handle_head_end_x = -87.0 + 0.5; // head, most distant end
 ratchet_handle_head_d0 = 26.5; // diam of nominal circle (width laid down)
 ratchet_handle_grip_end_h = 23.5; // height of handle at far end (width l.d.)
 
@@ -360,14 +361,14 @@ module DriverHandleHolder() { ////toplevel
 //---------- RatchetHandle ----------
 
 module RatchetHandlePositive() { ////toplevel
-  xhe = -87.0 + 0.5;    // head, most distant end
   xh1 = -40.0;          // head, near end (where it meets shaft)
   head_y = 12.1 + 0.5;  // head, thickness
   xg1 = 14.0;           // grip, widest point (near inner end of grip)
 
   // calculated (and aliases)
-  head_xmid = (xh1 + xhe)/2;
+  xhe = ratchet_handle_head_end_x;
   head_d0 = ratchet_handle_head_d0;
+  head_xmid = (xh1 + xhe)/2;
 
   // grip, main part
   hull(){