chiark / gitweb /
powerbank-bike-clamp: wip
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2021 20:37:18 +0000 (20:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2021 20:37:18 +0000 (20:37 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
powerbank-bike-clamp.scad

index 79b08d8760927742155080a989f6a3c8535c6fc9..0cf34c0aca4d893fb25d425f890b5091ec1a2f78 100644 (file)
@@ -102,7 +102,7 @@ module TubeClampRightPlan(){
   }
 }
 
-module SomeClamp(){
+module SomeClamp(hinge_alt=false){
   difference(){
     linextr(-clamp_width/2, clamp_width/2)
       children(0);
@@ -114,7 +114,9 @@ module SomeClamp(){
     for (i=[0 : hinge_lobes-1]) {
       translate([0,
                 hinge_y,
-                -clamp_width/2 + i * hinge_stride])
+                -clamp_width/2 + i * hinge_stride
+                + (hinge_alt ? hinge_stride/2 : 0)
+                ])
        linextr(-hinge_gap_z, hinge_stride/2)
        square(hinge_outer_r*2 + hinge_gap_xy, center=true);
     }
@@ -123,7 +125,7 @@ module SomeClamp(){
 
 module TubeClampLeft() { ////toplevel
   difference(){
-    SomeClamp()
+    SomeClamp(true)
       TubeClampLeftPlan();
 
     translate([0, screw_y, 0]) {
@@ -143,6 +145,7 @@ module TubeClampRight() { ////toplevel
     TubeClampRightPlan();
 }
 
-//TubeClampLeft();
-//TubeClampRight();
-
+module TubeClampDemo() { ////toplevel
+  TubeClampLeft();
+  TubeClampRight();
+}