diff --git a/vitamins/component.scad b/vitamins/component.scad index c2cd96d..b5372d9 100644 --- a/vitamins/component.scad +++ b/vitamins/component.scad @@ -161,13 +161,13 @@ module al_clad_resistor(type, value, leads = true) { //! Draw an aluminium clad } linear_extrude(thickness) difference() { - for(end = [-1, 1]) - translate([end * (length - tab) / 2, end * (width - width / 2) / 2]) - square([tab, width / 2], center = true); + union() + for(end = [-1, 1]) + translate([end * (length - tab) / 2, end * (width - width / 2) / 2]) + square([tab, width / 2], center = true); al_clad_resistor_hole_positions(type) circle(d = al_clad_hole(type)); - } if(leads) { translate_z(height / 2) diff --git a/vitamins/smd.scad b/vitamins/smd.scad index ace1649..fcb71a5 100644 --- a/vitamins/smd.scad +++ b/vitamins/smd.scad @@ -62,9 +62,10 @@ module smd_led(type, colour, cutout) { //! Draw an SMD LED with specified ```col intersection() { square([size.x, size.y], center = true); - for(end = [-1, 1]) - translate([end * size.x / 2, 0]) - ring(or = r, ir = r / 2); + union() + for(end = [-1, 1]) + translate([end * size.x / 2, 0]) + ring(or = r, ir = r / 2); } color(colour, 0.9)