From ead10a482a5b38038432c8c64749154fcfd994d9 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Tue, 21 Jan 2014 20:25:28 +0100 Subject: [PATCH] the basics are done --- Power_bar_screwdown/power_bar_screwdown.scad | 21 +++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/Power_bar_screwdown/power_bar_screwdown.scad b/Power_bar_screwdown/power_bar_screwdown.scad index 904ce0a..276820d 100644 --- a/Power_bar_screwdown/power_bar_screwdown.scad +++ b/Power_bar_screwdown/power_bar_screwdown.scad @@ -80,7 +80,7 @@ module shell(){ module screwdown(){ difference(){ - cube([15+radius_side,15,wall_thickness]); + cube([15+(width_longest-width_shortest)/2+wall_thickness,15,wall_thickness]); translate([7.5,7.5,0]){ screw_hole(); } @@ -96,13 +96,24 @@ module screw_hole() { translate([0,0,-20]){ cylinder(h=30, r=thread/2, $fn=FN); } - translate([0,0,btn-(thread/2)]){ + translate([0,0,wall_thickness-(thread/2)]){ cylinder(h=head-(thread/2), r1=thread/2, r2=head); } } +module assembly(){ + shell(); + translate([-15,0,- height/2 -wall_thickness]){ + screwdown(); + } -shell(); -translate([-15,0,-(height+wall_thickness*2)/2]){ - screwdown(); + translate([width_longest+wall_thickness*2+15,0,- height/2 -wall_thickness]){ + mirror([1,0,0]){ + screwdown(); + } + } +} + +translate([0,0,height/2+wall_thickness]){ + assembly(); }