blob: 7b24131a792b13052ebd825558ce22715f24c091 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
include <bolt.scad>
include <nut.scad>
module pcb(dim, drillings, margins, t) {
translate([2*t+margins[0][0], bolt_l+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);
}
}
}
}
|