1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-13 10:53:59 +02:00

Added ATX300 PSU model.

This commit is contained in:
Chris Palmer
2021-10-20 20:34:49 +01:00
parent d19fad3f9f
commit 21c06667a3
5 changed files with 39 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ include <../vitamins/psus.scad>
use <../utils/layout.scad>
module psus()
layout([for(p = psus) psu_width(p)], 10) let(p = psus[$i])
layout([for(p = psus) atx_psu(p) ? psu_length(p) : psu_width(p)], 10) let(p = psus[$i])
rotate(atx_psu(p) ? 0 : 90) {
psu(p);
@@ -31,5 +31,10 @@ module psus()
screw_and_washer(psu_screw(p), 8);
}
if($preview)
if($preview) {
psus();
for(p = psus_not_shown)
hidden()
psu(p);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

After

Width:  |  Height:  |  Size: 251 KiB