Smarter spacing for the bolt mounting holes
This commit is contained in:
parent
a2e93072ed
commit
7f0e86fffe
1 changed files with 5 additions and 4 deletions
|
@ -17,16 +17,17 @@ module pcb_jig(width, height) {
|
||||||
cube([15, 20, 20], center = true);
|
cube([15, 20, 20], center = true);
|
||||||
|
|
||||||
translate([2.5, 0, -1]) {
|
translate([2.5, 0, -1]) {
|
||||||
|
spacing = max(1, floor(height / 45)) * 45;
|
||||||
translate([width / 2 + 10, 0, 0]) {
|
translate([width / 2 + 10, 0, 0]) {
|
||||||
translate([0, height / 2 - 3.25, 0])
|
translate([0, spacing / 2, 0])
|
||||||
cylinder(h = 20, d = 6.5);
|
cylinder(h = 20, d = 6.5);
|
||||||
translate([0, -height / 2 + 3.25, 0])
|
translate([0, -spacing / 2, 0])
|
||||||
cylinder(h = 20, d = 6.5);
|
cylinder(h = 20, d = 6.5);
|
||||||
}
|
}
|
||||||
translate([-width / 2 - 15, 0, 0]) {
|
translate([-width / 2 - 15, 0, 0]) {
|
||||||
translate([0, height / 2 - 3.25, 0])
|
translate([0, spacing / 2, 0])
|
||||||
cylinder(h = 20, d = 6.5);
|
cylinder(h = 20, d = 6.5);
|
||||||
translate([0, -height / 2 + 3.25, 0])
|
translate([0, -spacing / 2, 0])
|
||||||
cylinder(h = 20, d = 6.5);
|
cylinder(h = 20, d = 6.5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue