diff options
author | Elena of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-04-09 21:40:12 +0200 |
---|---|---|
committer | Elena of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-04-09 21:40:12 +0200 |
commit | 0a58fbb28bb7b9199e8833d47c38951e16e8ee96 (patch) | |
tree | aaa9a1f75d6ae06ac520337d875ba9c648deed21 /parts |
Import of existing parts
Diffstat (limited to 'parts')
-rw-r--r-- | parts/foot.scad | 39 | ||||
-rw-r--r-- | parts/straight_connector-rect.scad | 14 | ||||
-rw-r--r-- | parts/straight_connector.scad | 11 | ||||
-rw-r--r-- | parts/tetrahedron_connector.scad | 41 | ||||
-rw-r--r-- | parts/triangular_connector.scad | 33 |
5 files changed, 138 insertions, 0 deletions
diff --git a/parts/foot.scad b/parts/foot.scad new file mode 100644 index 0000000..59a1f2e --- /dev/null +++ b/parts/foot.scad @@ -0,0 +1,39 @@ + +radius = 8.25; +wall = 6; +len = 40; +foot_radius = 30; +foot_height = 8; +angle = 30; +hole_radius = 3; +hole_dist = 8; + +end = true; + +cut_h = (radius+wall)*sin(angle) + 1; +cut_r = (radius+wall)/cos(angle) + 1; + +difference() { + union() { + difference() { + rotate([0,angle,0]) cylinder(r=radius + wall, h = len); + translate([0,0,-cut_h]) cylinder(r=cut_r, h=cut_h); + } + translate([0,0,-0.01]) cylinder(r = foot_radius, h = foot_height); + translate([-cut_r+3.5,0,cut_h+2]) rotate([90, 0, 0]) difference() { + cylinder(r=8, h = 4, center=true); + cylinder(r=4, h=5, center=true); + } + if (end) { + translate([cut_r+wall/2,0,radius+wall]) rotate([0,90,0]) + cylinder(r=radius + wall, h = len); + } + } + rotate([0, angle, 0]) translate([0,0, radius * sin(angle) + foot_height]) cylinder(r = radius, h = len); + translate([0,foot_radius - hole_dist,-1]) cylinder(r=hole_radius, h=foot_height + 2); + translate([0,-foot_radius + hole_dist,-1]) cylinder(r=hole_radius, h=foot_height + 2); + if (end) { + translate([cut_r+wall/2,0,radius+wall]) rotate([0,90,0]) + translate([0,0,wall]) cylinder(r=radius, h=len); + } +} diff --git a/parts/straight_connector-rect.scad b/parts/straight_connector-rect.scad new file mode 100644 index 0000000..063b452 --- /dev/null +++ b/parts/straight_connector-rect.scad @@ -0,0 +1,14 @@ + + +radius = 8.25; +wall = 4; +len = 60; + +rotate([0,90,0]) difference() { + intersection() { + cube([(radius + wall)*2, (radius + wall)*2, len], center=true); + cylinder(r=(radius + wall)*sqrt(2)-2, h=len, center=true); + } + translate([0,0,len/2+wall/2]) cylinder(r=radius, h=len, center=true); + translate([0,0,-len/2-wall/2]) cylinder(r=radius, h=len, center=true); +} diff --git a/parts/straight_connector.scad b/parts/straight_connector.scad new file mode 100644 index 0000000..bfe3d29 --- /dev/null +++ b/parts/straight_connector.scad @@ -0,0 +1,11 @@ + + +radius = 8.25; +wall = 6; +len = 60; + +rotate([0,90,0]) difference() { + cylinder(r=radius + wall, h=len, center=true); + translate([0,0,len/2+wall/2]) cylinder(r=radius, h=len, center=true); + translate([0,0,-len/2-wall/2]) cylinder(r=radius, h=len, center=true); +} diff --git a/parts/tetrahedron_connector.scad b/parts/tetrahedron_connector.scad new file mode 100644 index 0000000..eb345d2 --- /dev/null +++ b/parts/tetrahedron_connector.scad @@ -0,0 +1,41 @@ + +radius = 8.25; +inner_radius = 13.5; +wall = 6; +top_wall = 6; +len = 40; +cut = 10; + +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); +} + +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); + } + difference() { + translate([0,0,-(radius + wall) / 2]) hull() { + external(radius, wall*3, len, top_wall); + rotate([0,0,120]) external(radius, wall*3, len, top_wall); + rotate([0,0,-120]) external(radius, wall*3, len, top_wall); + } + translate([0,0,len/2]) rotate([0,10,0]) cylinder(r=(len+wall), h=cut); + } + } + tube(radius, wall, len); + rotate([0,0,120]) tube(radius, wall, len); + rotate([0,0,-120]) tube(radius, wall, len); +} diff --git a/parts/triangular_connector.scad b/parts/triangular_connector.scad new file mode 100644 index 0000000..4c7607f --- /dev/null +++ b/parts/triangular_connector.scad @@ -0,0 +1,33 @@ + +radius = 8.25; +wall = 6; +top_wall = 6; +len = 40; + +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([0,105,0]) 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); + } + translate([radius+wall,0,(len+top_wall)*sin(60)]) rotate([0,-90,0]) cylinder(r = radius + wall, h = len + wall); + } + 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); +} |