aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connectors.scad4
-rw-r--r--parts/angle-90.scad2
-rw-r--r--parts/cube_connector.scad9
3 files changed, 12 insertions, 3 deletions
diff --git a/lib/connectors.scad b/lib/connectors.scad
index 078844e..4ecb0f5 100644
--- a/lib/connectors.scad
+++ b/lib/connectors.scad
@@ -53,11 +53,11 @@ module star_connector(radius, wall, len, angles) {
union() {
sphere(r=radius + wall);
for (a = angles) {
- rotate([0, a, 0]) cylinder(r=radius + wall, h=len);
+ rotate(a) cylinder(r=radius + wall, h=len);
}
}
for (a = angles) {
- rotate([0, a, 0]) translate([0, 0, radius+wall]) cylinder(r=radius, h=len);
+ rotate(a) translate([0, 0, radius+wall]) cylinder(r=radius, h=len);
}
}
}
diff --git a/parts/angle-90.scad b/parts/angle-90.scad
index 17a654b..b68d743 100644
--- a/parts/angle-90.scad
+++ b/parts/angle-90.scad
@@ -4,6 +4,6 @@ include <../lib/connectors.scad>
radius = 8.25;
wall = 6;
len = 40;
-angles = [0, 90];
+angles = [[0, 0, 0], [0, 90, 0]];
star_connector(radius, wall, len, angles);
diff --git a/parts/cube_connector.scad b/parts/cube_connector.scad
new file mode 100644
index 0000000..9a7f96a
--- /dev/null
+++ b/parts/cube_connector.scad
@@ -0,0 +1,9 @@
+
+include <../lib/connectors.scad>
+
+radius = 8.25;
+wall = 5;
+len = 40;
+angles = [[0,0,0], [0,90,0], [-90, 0, 0]];
+
+star_connector(radius, wall, len, angles);