chiark / gitweb /
topeak-seatstay-lock: wip just start pin
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 31 May 2014 20:09:05 +0000 (21:09 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 31 May 2014 20:09:05 +0000 (21:09 +0100)
topeak-seatstay-lock.scad

index efa3d13..59552bf 100644 (file)
@@ -7,6 +7,17 @@ pump_seatstay_gap = 12.3;
 pump_seatstay_delta = 0.1;
 holes_rotation = 7;
 
+body_thick_x = 5;
+body_thick_y = 5;
+
+pin_workdepth = 15;
+pin_width = 11 + 0.5;
+pin_thick = 3 + 0.4;
+
+// computed
+
+body_depth = pin_width + 8;
+
 module Holes(){
   translate([0, -pump_dia/2]);
   rotate(-holes_rotation){
@@ -24,4 +35,22 @@ module Holes(){
   }
 }
 
-Holes();
+module BodyPlan(){
+  hull(){
+    for(x=[-1,1]) for(y=[-1,1])
+      translate([x*body_thick_x, y*body_thick_y])
+       Holes();
+  }
+}
+
+module Body(){
+  translate([0,0,-body_depth/2])
+    linear_extrude(height=body_depth){
+    difference(){
+      BodyPlan();
+      Holes();
+    }
+  }
+}
+
+Body();