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

index 849c31435b5db26af7756279df7d07e5196f9ecd..afacf9fbf3b239903fc00e39e144c7297247a31a 100644 (file)
@@ -1,22 +1,42 @@
 // -*- C -*-
 
+include <utils.scad>
+
 rod_dia = 8+2;
 thick = 8;
 screw_dia = 3.5 + 0.75;
 screw_head_dia = 8.2 + 1.0;
 rod_offset = 14 + 2;
+mainheight = 25;
 width = 40;
 
 module C() {
-  circle(r = rod_dia/2, $fn=20);
+  circle(r = thick/2, $fn=30);
 }
 
 module Profile() {
   d = rod_dia/2 + thick/2;
+  e = rod_offset;
   hull(){
     translate([-d, 0]) C();
     translate([-d,-d]) C();
   }
+  difference(){
+    rectfromto([-d,-d-thick/2], [e,0]);
+    circle(r= rod_dia/2, $fn=50);
+  }
+  hull(){
+    for (y= [-d, +mainheight]) {
+      translate([d, y]) C();
+      rectfromto([d, y-thick/2], [e, y+thick/2]);
+    }
+  }
 }
 
-Profile();
+module CutProfile(){
+  
+}
+
+module Demo(){
+  Profile();
+}