mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-07 07:56:30 +02:00
Fixes for lazy union.
This commit is contained in:
@@ -161,13 +161,13 @@ module al_clad_resistor(type, value, leads = true) { //! Draw an aluminium clad
|
|||||||
}
|
}
|
||||||
linear_extrude(thickness)
|
linear_extrude(thickness)
|
||||||
difference() {
|
difference() {
|
||||||
for(end = [-1, 1])
|
union()
|
||||||
translate([end * (length - tab) / 2, end * (width - width / 2) / 2])
|
for(end = [-1, 1])
|
||||||
square([tab, width / 2], center = true);
|
translate([end * (length - tab) / 2, end * (width - width / 2) / 2])
|
||||||
|
square([tab, width / 2], center = true);
|
||||||
|
|
||||||
al_clad_resistor_hole_positions(type)
|
al_clad_resistor_hole_positions(type)
|
||||||
circle(d = al_clad_hole(type));
|
circle(d = al_clad_hole(type));
|
||||||
|
|
||||||
}
|
}
|
||||||
if(leads) {
|
if(leads) {
|
||||||
translate_z(height / 2)
|
translate_z(height / 2)
|
||||||
|
@@ -62,9 +62,10 @@ module smd_led(type, colour, cutout) { //! Draw an SMD LED with specified ```col
|
|||||||
intersection() {
|
intersection() {
|
||||||
square([size.x, size.y], center = true);
|
square([size.x, size.y], center = true);
|
||||||
|
|
||||||
for(end = [-1, 1])
|
union()
|
||||||
translate([end * size.x / 2, 0])
|
for(end = [-1, 1])
|
||||||
ring(or = r, ir = r / 2);
|
translate([end * size.x / 2, 0])
|
||||||
|
ring(or = r, ir = r / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
color(colour, 0.9)
|
color(colour, 0.9)
|
||||||
|
Reference in New Issue
Block a user