chiark / gitweb /
ksafe-base: thumb slots
[reprap-play.git] / topeak-seatstay-lock.scad
index ff22d27829f9d04b055b096357adf93a2e8c4f6f..072a55769e298641432b12df9db8d3a6781d0fc5 100644 (file)
@@ -22,6 +22,9 @@ lock_manouvre_len_smaller = 13;
 body_depth_each = 5;
 clatter_gap = 0.5;
 
+roof_extent = 7;
+roof_thick = 2;
+
 // fudgeish
 
 cut_rotation = 2;
@@ -66,11 +69,21 @@ module BodyPlan(){
 }
 
 module Body(){
-  translate([0,0,-body_depth/2])
+  translate([0,0,body_depth/2])mirror([0,0,1]){
     linear_extrude(height=body_depth){
-    difference(){
-      BodyPlan();
-      Holes();
+      difference(){
+       BodyPlan();
+       Holes();
+      }
+    }
+    linear_extrude(height=roof_thick){
+      difference(){
+       hull(){
+         BodyPlan();
+         translate([0,-roof_extent,0]) BodyPlan();
+       }
+       Holes();
+      }
     }
   }
 }
@@ -110,7 +123,7 @@ module Piece(pc,interval){
 }
 
 module PiecePrint(pc){
-  rotate([0,180,0])
+  rotate([0,0,90]) rotate([0,180,0])
     Piece(pc,4);
 }