summaryrefslogtreecommitdiff
path: root/mech
diff options
context:
space:
mode:
Diffstat (limited to 'mech')
-rw-r--r--mech/pcb_case/shell.scad9
1 files changed, 5 insertions, 4 deletions
diff --git a/mech/pcb_case/shell.scad b/mech/pcb_case/shell.scad
index d60248b..ff34061 100644
--- a/mech/pcb_case/shell.scad
+++ b/mech/pcb_case/shell.scad
@@ -58,13 +58,14 @@ module pcb_case_shell(dim, t, h, sockets) {
union() {
shell_base(dim, t);
shell_connector(dim, t);
- for (socket = [0:len(sockets)-1]) {
- translate([sockets[socket][0], sockets[socket][1], 0])
+ for (socket = sockets) {
+ echo(socket=socket);
+ translate([socket[0], socket[1], 0])
cylinder(d=nut_d+2, h=h);
}
}
- for (socket = [0:len(sockets)-1]) {
- translate([sockets[socket][0], sockets[socket][1], 0]) {
+ for (socket = sockets) {
+ translate([socket[0], socket[1], 0]) {
cylinder(d=bolt_d, h=h);
cylinder(d=0.9*nut_d, h=nut_h);
}