diff options
author | Elena of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-10-24 13:52:02 +0200 |
---|---|---|
committer | Elena of Valhalla'' Grandi <valhalla@trueelena.org> | 2014-10-24 13:52:02 +0200 |
commit | 232549f172b5d80ae9267b8f002dab1eb059b869 (patch) | |
tree | 848bb2af34962554da9afae84331b432e1f37d18 | |
parent | 92371c60548fbfbb25b480c2f2823934ce1ba088 (diff) |
Star connector
-rw-r--r-- | lib/connectors.scad | 14 | ||||
-rw-r--r-- | parts/angle-90.scad | 9 |
2 files changed, 23 insertions, 0 deletions
diff --git a/lib/connectors.scad b/lib/connectors.scad index 58bf259..dd4a973 100644 --- a/lib/connectors.scad +++ b/lib/connectors.scad @@ -47,3 +47,17 @@ module t_connector(radius, wall, len, angle) { rotate([0, angle, 0]) translate([0, 0, radius+wall]) cylinder(r=radius, h=len); } } + +module star_connector(radius, wall, len, angles) { + rotate([90,0,0]) difference() { + union() { + sphere(r=radius + wall); + for (a = angles) { + rotate([0, a, 0]) cylinder(r=radius + wall, h=len); + } + } + for (a = angles) { + rotate([0, a, 0]) translate([0, 0, radius+wall]) cylinder(r=radius, h=len); + } + } +} diff --git a/parts/angle-90.scad b/parts/angle-90.scad new file mode 100644 index 0000000..17a654b --- /dev/null +++ b/parts/angle-90.scad @@ -0,0 +1,9 @@ + +include <../lib/connectors.scad> + +radius = 8.25; +wall = 6; +len = 40; +angles = [0, 90]; + +star_connector(radius, wall, len, angles); |