From accebf67ea1b45a4451534187b31a64fcd284969 Mon Sep 17 00:00:00 2001 From: Jan Huwald Date: Tue, 11 Feb 2014 16:27:59 +0100 Subject: backplane: add PCB screw holes diff --git a/backplane.scad b/backplane.scad index 532885b..9f00c95 100644 --- a/backplane.scad +++ b/backplane.scad @@ -1,5 +1,7 @@ include +use + module hdd_connector(w,h,d) { difference() { cube([w, d, h]); @@ -12,7 +14,17 @@ module hdd_connector(w,h,d) { // board module backplane_pcb() { color("sienna") + difference() { cube([backplane_width, backplane_thickness, backplane_height]); + + // screw holes for PCB screws + for (p = [[0, bar_thickness/2], + [0, tray_height - bar_thickness/2], + [tray_width/2 - bar_thickness, tray_height - bar_thickness/2]]) + translate([p[0] - backplane_hoffset, 0, p[1] - backplane_voffset]) + rotate([-90, 0, 0]) + screw_hole(); + } } module backplane_populated() { -- cgit v0.10.1