chiark / gitweb /
toolbox-inserts: RatchetHandle, prep for control switch
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 May 2025 14:41:38 +0000 (15:41 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 9 May 2025 14:42:09 +0000 (15:42 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
toolbox-inserts.scad

index 75b3f33f63e119d24b101449b3f22c666e64719b..049e6b640d6f3cda10e2d57bb028282fdffb4a3d 100644 (file)
@@ -385,11 +385,20 @@ module RatchetHandlePositive() { ////toplevel
   linextr_x_yz(head_xmid, 1)
     circle(r = 10.0 /2);
 
-  // head, main part (oval)
-  linextr_y_xz(-head_y/2, head_y/2) {
-    rotate(180)
-    translate([ head_xmid, 0,0 ])
-    oval([ xh1 - xhe, head_d0 ]/2);
+  // head (and ratchet control switch)
+  intersection(){
+    // head elevation (oval)
+    linextr_y_xz(-100, 100) {
+      rotate(180)
+       translate([ head_xmid, 0,0 ])
+       oval([ xh1 - xhe, head_d0 ]/2);
+    }
+
+    union(){
+      // select main part
+      linextr_y_xz(-head_y/2, head_y/2)
+        square(200, center=true);
+    }
   }
 
   // business end: 1/4" square driver protruding from head