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 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