blob: 23602be6149e07c48199bbdb206f8adf8c955a74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module pcb(dim, drillings, margins, t) {
translate([2*t+margins[0][0], 2*t+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);
}
}
}
}
|