1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-15 11:54:02 +02:00

atx_psu_cutout(type) now parametric and can be shown in the test.

ATX300 PSU now has a correct cutout and more accurate grill holes.
The four margins around grill holes can now be specified.
This commit is contained in:
Chris Palmer
2021-10-24 13:32:46 +01:00
parent 6687a4a7c6
commit b2117fa99a
5 changed files with 64 additions and 37 deletions

View File

@@ -16,11 +16,15 @@
// You should have received a copy of the GNU General Public License along with NopSCADlib.
// If not, see <https://www.gnu.org/licenses/>.
//
show_cutout = false;
include <../core.scad>
include <../vitamins/psus.scad>
use <../utils/layout.scad>
module psus()
layout([for(p = psus) atx_psu(p) ? psu_length(p) : psu_width(p)], 10) let(p = psus[$i])
rotate(atx_psu(p) ? 0 : 90) {
@@ -29,6 +33,9 @@ module psus()
psu_screw_positions(p)
translate_z(3)
screw_and_washer(psu_screw(p), 8);
if(show_cutout && atx_psu(p))
#atx_psu_cutout(p);
}
if($preview) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 255 KiB