diff --git a/Power_bar_screwdown/power_bar_screwdown.scad b/Power_bar_screwdown/power_bar_screwdown.scad index 276820d..ca3d32e 100644 --- a/Power_bar_screwdown/power_bar_screwdown.scad +++ b/Power_bar_screwdown/power_bar_screwdown.scad @@ -1,11 +1,11 @@ // asdfadsf -radius = product_of_the_triangle_side_lengths / area_of_the_triangle_multiplied_by_4; +//radius = product_of_the_triangle_side_lengths / area_of_the_triangle_multiplied_by_4; FN=80*1; -width_shortest = 40; -width_longest = 60; +width_shortest = 46.5; +width_longest = 55.0; height = 40; wall_thickness = 3; @@ -28,21 +28,20 @@ echo(str("Radius: ", radius_side)); module body(radius_sides, body_height, body_width, inner){ intersection(){ intersection(){ - translate([0,0,-body_height/2]){ - cube([body_width,100,body_height]); + intersection(){ + translate([0,0,-body_height/2]){ + cube([body_width,100,body_height]); + } + translate([radius_sides,0,0]){ + rotate([-90,0,0]){ + cylinder(h=100, r=radius_sides, $fn=FN); + } + } } - union(){ - translate([radius_sides,0,0]){ - rotate([-90,0,0]){ - cylinder(h=100, r=radius_sides, $fn=FN); - } + translate([body_width-radius_sides,0,0]){ + rotate([-90,0,0]){ + cylinder(h=100, r=radius_sides, $fn=FN); } - translate([body_width-radius_sides,0,0]){ - rotate([-90,0,0]){ - cylinder(h=100, r=radius_sides, $fn=FN); - } - } - } } union(){