chiark / gitweb /
cliphook wip - end now in right place
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2012 16:40:02 +0000 (17:40 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Aug 2012 16:40:02 +0000 (17:40 +0100)
cliphook.scad

index 3ea3573..86a76ba 100644 (file)
@@ -5,7 +5,7 @@ function ClipHook_yd(w,g,l,ye,k) = g/2 + w + g + w/2 - ClipHook_r3(w,g,l,ye,k);
 function ClipHook_xe(w,g,l,ye,k) =
         l*1.5 + w +
        sqrt(pow( ClipHook_r3(w,g,l,ye,k),      2) -
-            pow( ClipHook_yd(w,g,l,ye,k) + ye, 2));
+            pow( ClipHook_yd(w,g,l,ye,k) - ye, 2));
 
 module ClipHook_2D(w,g,l,ye,k,h) {
   r2 =  ClipHook_r2(w,g,l,ye,k);
@@ -66,4 +66,4 @@ module ClipHook(w=1.2, g=0.2, l=0.0, ye=0, k=2.0, h=3.5, demo=false) {
       translate([l+w,0,0]) rotate(180) ClipHook_2D(w,g,l,ye,k);
 }
 
-ClipHook(l=3, ye=-3, k=1, demo=true);
+ClipHook(l=3, ye=1.5, k=1, demo=true);