blob: e742eb57af5a058d2866ec5843774cc889a51dee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
include <nut.scad>
module pcb(dim, drillings, margins, t) {
translate([2*t+margins[0][0], t+2*nut_h+margins[1][0], t+margins[2][0]]) {
difference() {
cube([dim[0], dim[1], dim[2]]);
for (drilling = drillings) {
translate([drilling[0], drilling[1], 0])
cylinder(d=3, h=dim[2], $fn=30);
}
}
}
}
|