X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=topeak-seatstay-lock.scad;h=072a55769e298641432b12df9db8d3a6781d0fc5;hp=05035d76cdd5b75ca9bcf7548a21c9627824b7de;hb=464ea5bfb20555916aa523b6d2745805347b4245;hpb=046b27e8504295ef1cc4cb1af96690e41366ee70 diff --git a/topeak-seatstay-lock.scad b/topeak-seatstay-lock.scad index 05035d7..072a557 100644 --- a/topeak-seatstay-lock.scad +++ b/topeak-seatstay-lock.scad @@ -7,8 +7,7 @@ pump_seatstay_gap = 12.3; pump_seatstay_delta = 0.1; pump_ridge_width = 8 + 2.0; -body_thick_x = 5; -body_thick_y = 5; +body_thick = 5; pin_workdepth = 16 - 1.0; pin_width = 11 + 1.0; @@ -23,12 +22,17 @@ lock_manouvre_len_smaller = 13; body_depth_each = 5; clatter_gap = 0.5; +roof_extent = 7; +roof_thick = 2; + // fudgeish cut_rotation = 2; holes_rotation = 9; -pin_offset = 6; +pin_y_offset = 5.5; +pin_x_offset = 0.5; ridge_rotation = 8.5; +lock_hang_ratio = 7; // computed @@ -57,41 +61,48 @@ module Holes(forbody=false){ } module BodyPlan(){ - hull(){ - for(x=[-1,1]) for(y=[-1,1]) - translate([x*body_thick_x, y*body_thick_y]) - Holes(true); + minkowski(){ + circle(body_thick); + hull() + Holes(true); } } 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(); + } } } } 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]); translate([-pin_width/2, -100]) square([pin_width, 101]); } hull() for (d=[0,10]) { - translate([d*2,-d,0]) + translate([d*lock_hang_ratio,-d,0]) translate([-lock_manouvre_thick/2, -pin_workdepth-100, -lock_manouvre_len_smaller]) cube([lock_manouvre_thick, 100, lock_manouvre_len + lock_manouvre_len_smaller]); } - translate([-lock_manouvre_thick/2, -pin_workdepth-50, - -lock_hang_width/2]) - cube([50, 50, lock_hang_width]); } } @@ -111,11 +122,14 @@ module Piece(pc,interval){ } } +module PiecePrint(pc){ + rotate([0,0,90]) rotate([0,180,0]) + Piece(pc,4); +} + module PiecesPrint(){ - rotate([0,180,0]) - for (pc=[0,1]){ - Piece(pc,4); - } + PiecePrint(0); + PiecePrint(1); } module Demo(){ @@ -129,3 +143,5 @@ module Demo(){ //Pin(); //Pieces(); PiecesPrint(); +//PiecePrint(0); +//PiecePrint(1);