1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-09-09 06:31:32 +02:00

Added PSU shrouds.

This commit is contained in:
Chris Palmer
2019-06-27 13:20:50 +01:00
parent 8ea7d92997
commit a3e51d2607
8 changed files with 320 additions and 9 deletions

View File

@@ -139,6 +139,8 @@ module psu_grill(width, height) {
}
}
function psu_terminal_block_z(type) = psu_face_cutouts(psu_faces(type)[f_left])[0][2].y + psu_height(type) / 2;
module psu(type) { //! Draw a power supply
vitamin(str("psu(", type[0], "): PSU ", psu_name(type)));
@@ -242,7 +244,7 @@ module psu(type) { //! Draw a power supply
rt = psu_face_thickness(faces[f_right]);
lt = psu_face_thickness(faces[f_left]);
cutout = psu_face_cutouts(faces[f_left])[0];
z = cutout[2].y + h / 2;
z = psu_terminal_block_z(type);
pw = w -ft - bt;
pl = l - right - rt;
pcb_thickness = 1.6;