From 187cf96353817701bb49d51117f2dd4f5099e597 Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 1 Jan 2024 17:28:46 +0100 Subject: mech: pcb_case: Visualize PCB This will help to identify calculation issues by human visual inspection. The PCB is not yet aligned. --- mech/pcb_case/pcb.scad | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mech/pcb_case/pcb.scad (limited to 'mech/pcb_case/pcb.scad') diff --git a/mech/pcb_case/pcb.scad b/mech/pcb_case/pcb.scad new file mode 100644 index 0000000..ba211ac --- /dev/null +++ b/mech/pcb_case/pcb.scad @@ -0,0 +1,11 @@ +module pcb(dim, drillings) { + translate([15, 5, 15]) { + 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); + } + } + } +} -- cgit v1.2.3-70-g09d2