From: Ian Jackson Date: Sat, 6 Feb 2021 01:05:39 +0000 (+0000) Subject: powerbank-bike-clamp: break out screws and fix cutout X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8d1d2fccd86f1637a048c2fd3b24cb8de3c55b8e;p=reprap-play.git powerbank-bike-clamp: break out screws and fix cutout Signed-off-by: Ian Jackson --- diff --git a/powerbank-bike-clamp.scad b/powerbank-bike-clamp.scad index f7bd402..90fae75 100644 --- a/powerbank-bike-clamp.scad +++ b/powerbank-bike-clamp.scad @@ -134,14 +134,29 @@ module TubeClampRightPlan(){ } } +module Screws(){ + linextr_x_yz(-main_r*5, main_r*5) + translate([screw_y, 0]) + circle(r= screw/2); + + translate([0, screw_y, 0]) { + linextr_x_yz(-(clamp_gap/2 + screw_nut_th), 0) + square([screw_nut_across, + screw_nut_across / cos(30) + bridge_slop*2], + center=true); + + linextr_x_yz(-200, -main_r + screw_head_h) + square([screw_head, screw_head + bridge_slop*2], + center=true); + } +} + module SomeClamp(hinge_alt=false){ difference(){ linextr(-clamp_width/2, clamp_width/2) children(0); - linextr_x_yz(-main_r*5, main_r*5) - translate([screw_y, 0]) - circle(r= screw/2); + Screws(); for (i=[0 : hinge_lobes-1]) { translate([0, @@ -263,16 +278,7 @@ module TubeClampLeft() { ////toplevel SomeClamp(true) TubeClampLeftPlan(); - translate([0, screw_y, 0]) { - linextr_x_yz(-(clamp_gap/2 + screw_nut_th), 0) - square([screw_nut_across, - screw_nut_across / cos(30) + bridge_slop*2], - center=true); - - linextr_x_yz(-main_r, -main_r + screw_head_h) - square([screw_head, screw_head + bridge_slop*2], - center=true); - } + Screws(); } } }