chiark / gitweb /
Revert "topeak-seatstay-lock: cylindrical hook to make lock hang at angle, BAD"
[reprap-play.git] / topeak-seatstay-lock.scad
index 954045160d9bb05dc8d68d3fc5a8695b85e8a9f0..ba066669963419249ff2b3207edca001dc3d0ebd 100644 (file)
@@ -26,7 +26,8 @@ clatter_gap = 0.5;
 
 cut_rotation = 2;
 holes_rotation = 9;
-pin_offset = 6;
+pin_y_offset = 5.5;
+pin_x_offset = 0.5;
 ridge_rotation = 8.5;
 
 // computed
@@ -74,7 +75,7 @@ module Body(){
 }
 
 module Pin(){
-  translate([0, pin_offset, 0]) rotate([0,90,0]){
+  translate([pin_x_offset, pin_y_offset, 0]) rotate([0,90,0]){
     translate([0, 0, -pin_thick/2])
       linear_extrude(height=pin_thick){
       translate([-pin_base/2, 0]) square([pin_base, 50]);
@@ -110,11 +111,14 @@ module Piece(pc,interval){
   }
 }
 
-module PiecesPrint(){
+module PiecePrint(pc){
   rotate([0,180,0])
-    for (pc=[0,1]){
-      Piece(pc,4);
-    }
+    Piece(pc,4);
+}
+
+module PiecesPrint(){
+  PiecePrint(0);
+  PiecePrint(1);
 }
 
 module Demo(){
@@ -128,3 +132,5 @@ module Demo(){
 //Pin();
 //Pieces();
 PiecesPrint();
+//PiecePrint(0);
+//PiecePrint(1);