diff --git a/pcb-jig.scad b/pcb-jig.scad index e100a4a..171eafe 100644 --- a/pcb-jig.scad +++ b/pcb-jig.scad @@ -1,20 +1,16 @@ -module pcb_jig(width, height) { - difference() { - color("green") - translate([0, 0, 5]) - cube([width + 50, height + 15, 10], center = true); +module pcb_jig(width, height, thickness = 10, inset = 3, tolerance = 1) { + difference() { + translate([0, 0, thickness / 2]) + cube([width + 50, height + 15, thickness], center = true); - color("red") - translate([0, 0, 10]) - cube([width + 1, height + 1, 5], center = true); + translate([0, 0, thickness - inset + (inset + 1) / 2]) + cube([width + tolerance, height + tolerance, (inset + 1)], center = true); - color("blue") - translate([0, height / 2 + 5, 2.5]) - cube([15, 20, 20], center = true); + translate([0, height / 2 + 5, 2.5]) + cube([15, 20, 20], center = true); - color("blue") - translate([0, -height / 2 - 5, 2.5]) - cube([15, 20, 20], center = true); + translate([0, -height / 2 - 5, 2.5]) + cube([15, 20, 20], center = true); translate([2.5, 0, -1]) { spacing = max(1, floor(height / 45)) * 45;