chiark / gitweb /
bike-lipo-box: adjustments from #1330 (and notes): prep for vent: add hole for vent
[reprap-play.git] / cliphook.scad
index 984b27850b4e75ec2a7ba8b28a987fc07aa053c1..22f08f54ec09a1d7d441488b755ded87f6cb753d 100644 (file)
@@ -1,3 +1,22 @@
+// -*- C -*-
+//
+// cliphook.scad
+//
+// 3D design for a small clippy hook
+// Copyright 2012,2016 Ian Jackson
+//
+// This work is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This work is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this work.  If not, see <http://www.gnu.org/licenses/>.
 
 function ClipHook_r2(w,g,l,ye,k) = w/2 + g + w/2;
 function ClipHook_r3(w,g,l,ye,k) = k * (ClipHook_r2(w,g,l,ye,k) + w + g);
@@ -15,11 +34,11 @@ module FlatArc(cx,cy,r1,r2,a1,a2=361,$fn=$fn) {
       difference() {
        circle(r=r2);
        translate([0,0,-1])
-         circle(r=r1, h=h+2);
+         circle(r=r1);
       }
       scale(size) {
        for (ai=[0:4]) {
-         echo(" jarc ", a1,a2, astep, ai, a1 + astep*ai );
+         //echo(" jarc ", a1,a2, astep, ai, a1 + astep*ai );
          rotate(a1 + astep*ai) {
            polygon([ [0,0], [1,0],
                      [cos(astep*2),sin(astep*2)] ]);