From a9c2f854c6cc08fc01a7eaf54c0f2d48f7cf3dfc Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 27 Mar 2020 17:29:50 +0000 Subject: [PATCH] Can now have rectangular lands on PCB holes. --- vitamins/pcb.scad | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/vitamins/pcb.scad b/vitamins/pcb.scad index 9abcb7a..8b81237 100644 --- a/vitamins/pcb.scad +++ b/vitamins/pcb.scad @@ -887,10 +887,20 @@ module pcb(type) { //! Draw specified PCB circle(d = 1 + eps); } + land = pcb_land_d(type); + hole = pcb_hole_d(type); color("silver") translate_z(t / 2) pcb_hole_positions(type) - tube(or = max(pcb_land_d(type), 1) / 2, ir = pcb_hole_d(type) / 2, h = t + 2 * eps); + if(is_list(land)) + linear_extrude(height = t + 2 * eps, center = true) + difference() { + square(land, center = true); + + circle(d = hole); + } + else + tube(or = max(land, 1) / 2, ir = hole / 2, h = t + 2 * eps); fr4 = pcb_colour(type) != "sienna"; plating = 0.15;