diff options
author | Elena of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-04-11 11:33:21 +0200 |
---|---|---|
committer | Elena of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-04-11 11:33:21 +0200 |
commit | 4f9f6d8b429e53ad1f4a1b951847339414a30ae9 (patch) | |
tree | eb895459c1f95044bf60056c6c77cbfbfe73b43a /parts/triangular_connector.scad | |
parent | 58f906f2f17d28626c26f006a9f306fc5b06068c (diff) |
triangular connector: remade from scratch
Diffstat (limited to 'parts/triangular_connector.scad')
-rw-r--r-- | parts/triangular_connector.scad | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/parts/triangular_connector.scad b/parts/triangular_connector.scad index 9249639..72da8b8 100644 --- a/parts/triangular_connector.scad +++ b/parts/triangular_connector.scad @@ -1,36 +1,18 @@ radius = 8.25; wall = 6; -top_wall = 6; len = 40; -rotation = [0,105,0]; -//rotation = [0,0,0]; - -module external(radius, wall, len, top_wall) { - w = len/2+radius+(radius+wall)*sin(60) ; - h = (radius + wall) / 2; - difference() { - translate([-len/2-radius,0,0]) rotate([0,30,0]) cylinder(r = radius + wall, h = len + top_wall); - translate ([-w,-w,-h]) cube([w*2, w*2, h*2]); - } -} - -module tube(radius, wall, len) { - translate([-len/2-radius,0,0]) rotate([0,30,0]) translate([0,0,-wall/2]) cylinder(r = radius, h = len); -} - -rotate(rotation) difference() { +difference() { union() { hull() { - //external(radius, wall, len, top_wall); - rotate([0,0,120]) external(radius, wall, len, top_wall); - rotate([0,0,-120]) external(radius, wall, len, top_wall); - translate([radius+wall,0,(len + top_wall)*sin(60)]) rotate([0,-90,0]) cylinder(r = radius + wall, h = wall*2); + rotate([0,0,30]) translate([wall,0,0]) rotate([0,90,0]) cylinder(r=radius+wall,h=len+wall*2); + rotate([0,0,-30]) translate([wall,0,0]) rotate([0,90,0]) cylinder(r=radius+wall,h=len+wall*2); + translate([0,0,-radius/2-wall]) cylinder(r=radius+wall,h=radius+wall*2); } - translate([radius+wall,0,(len+top_wall)*sin(60)]) rotate([0,-90,0]) cylinder(r = radius + wall, h = len + wall); + cylinder(r=radius+wall,h=len); } - rotate([0,0,120]) tube(radius, wall, len); - rotate([0,0,-120]) tube(radius, wall, len); - translate([radius,0,(len+top_wall)*sin(60)]) rotate([0,-90,0]) cylinder(r = radius, h = len + 2); + rotate([0,0,30]) translate([wall*2.4,0,0]) rotate([0,90,0]) cylinder(r=radius,h=len+wall*2); + rotate([0,0,-30]) translate([wall*2.4,0,0]) rotate([0,90,0]) cylinder(r=radius,h=len+wall*2); + translate([0,0,-radius/2]) cylinder(r=radius,h=len+wall*2); } |