chiark / gitweb /
salter-scale-hook: wip Hook
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 1 Mar 2019 20:23:06 +0000 (20:23 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 1 Mar 2019 20:23:06 +0000 (20:23 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
salter-scale-hook.scad

index b9dc7b7a3fae47694644ad1cdd911291f84d6434..8e9761b2d5bcd9e1448fbb171270cddb2b64a0cf 100644 (file)
@@ -19,6 +19,13 @@ ymin = yminc-thick/2;
 ymaxc = mainheight;
 ymax = mainheight+thick/2;
 
+cutdepth = rod_offset - rod_dia/2 - rearthick;
+
+cut_z0 = screw_head_dia/2;
+cut_z1 = width/2 - rearthick;
+
+cutslopez = cutdepth * 0.5;
+
 module C() {
   circle(r = thick/2, $fn=30);
 }
@@ -56,4 +63,23 @@ module ProfileDemo(){
   color("red") translate([0,0,1]) CutProfile();
 }
 
-ProfileDemo();
+module Cut(less){
+  for (m=[0,1]) {
+    mirror([0,0,m]) {
+      translate([0,0, cut_z0 + less])
+       linear_extrude(height = cut_z1 - cut_z0 - less*2)
+       CutProfile();
+    }
+  }
+}
+
+module Hook(){
+  difference(){
+    translate([0,0, -width/2])
+      linear_extrude(height=width) Profile();
+    Cut(0);
+  }
+}
+
+//ProfileDemo();
+Hook();