mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-23 15:23:51 -05:00
Can now have rectangular lands on PCB holes.
This commit is contained in:
parent
6187d90c57
commit
a9c2f854c6
@ -887,10 +887,20 @@ module pcb(type) { //! Draw specified PCB
|
|||||||
circle(d = 1 + eps);
|
circle(d = 1 + eps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
land = pcb_land_d(type);
|
||||||
|
hole = pcb_hole_d(type);
|
||||||
color("silver")
|
color("silver")
|
||||||
translate_z(t / 2)
|
translate_z(t / 2)
|
||||||
pcb_hole_positions(type)
|
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";
|
fr4 = pcb_colour(type) != "sienna";
|
||||||
plating = 0.15;
|
plating = 0.15;
|
||||||
|
Loading…
Reference in New Issue
Block a user