1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-17 04:43:59 +02:00

Merge branch 'martinbudden-psu_size'

This commit is contained in:
Chris Palmer
2021-04-12 22:29:41 +01:00
2 changed files with 2 additions and 0 deletions

View File

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

View File

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