From 1efed649cf54607b9d39d4b7f422dd385ccb441f Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Mon, 12 Apr 2021 17:52:57 +0100 Subject: [PATCH 1/2] Added PSU size function. --- vitamins/psu.scad | 1 + 1 file changed, 1 insertion(+) diff --git a/vitamins/psu.scad b/vitamins/psu.scad index b2a8a37..1756877 100644 --- a/vitamins/psu.scad +++ b/vitamins/psu.scad @@ -44,6 +44,7 @@ function psu_name(type) = type[1]; //! The part name function psu_length(type) = type[2]; //! Length function psu_width(type) = type[3]; //! Width function psu_height(type) = type[4]; //! Height +function psu_size(type) = [psu_length(type), psu_width(type), psu_height(type)]; //! Size function psu_screw(type) = type[5]; //! Screw type function psu_screw_hole_radius(type) = type[6]; //! Clearance hole for screw, bigger than normal on ATX function atx_psu(type) = type[7]; //! True if an ATX style PSU From 145c5d9b1a7c873940abf266a321edabdff3b7a0 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 12 Apr 2021 22:29:20 +0100 Subject: [PATCH 2/2] Updated readme. --- readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.md b/readme.md index b87bca7..07caf38 100644 --- a/readme.md +++ b/readme.md @@ -2627,6 +2627,7 @@ Face order is bottom, top, left, right, front, back. | Function | Description | |:--- |:--- | | `psu_face_transform(type, face)` | Returns a transformation matrix to get to the specified face | +| `psu_size(type)` | Size | | `terminal_block_length(type, ways)` | Total length of terminal block | ### Modules