From d1429a3b7d36f9ebc9bb281e4956362512530226 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Sun, 6 Sep 2020 12:32:42 +0100 Subject: [PATCH] Verboard can now have components on the underside, same as PCBs. --- vitamins/veroboard.scad | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vitamins/veroboard.scad b/vitamins/veroboard.scad index b6c1938..d2b7a59 100644 --- a/vitamins/veroboard.scad +++ b/vitamins/veroboard.scad @@ -132,8 +132,12 @@ module veroboard(type) { //! Draw specified veroboard with missing tracks and tr module vero_components(type, cutouts = false, angle = undef) for(comp = vero_components(type)) vero_grid_pos(type, comp.x, comp.y) - translate_z(vero_thickness(type)) - pcb_component(comp, cutouts, angle); + if(comp[3][0] == "-") + vflip() + pcb_component(comp, cutouts, angle); + else + translate_z(vero_thickness(type)) + pcb_component(comp, cutouts, angle); module vero_cutouts(type, angle = undef) vero_components(type, true, angle); //! Make cutouts to clear components