mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-18 05:01:22 +02:00
Merge branch 'martinbudden-psu_size'
This commit is contained in:
@@ -2627,6 +2627,7 @@ Face order is bottom, top, left, right, front, back.
|
|||||||
| Function | Description |
|
| Function | Description |
|
||||||
|:--- |:--- |
|
|:--- |:--- |
|
||||||
| `psu_face_transform(type, face)` | Returns a transformation matrix to get to the specified face |
|
| `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 |
|
| `terminal_block_length(type, ways)` | Total length of terminal block |
|
||||||
|
|
||||||
### Modules
|
### Modules
|
||||||
|
@@ -44,6 +44,7 @@ function psu_name(type) = type[1]; //! The part name
|
|||||||
function psu_length(type) = type[2]; //! Length
|
function psu_length(type) = type[2]; //! Length
|
||||||
function psu_width(type) = type[3]; //! Width
|
function psu_width(type) = type[3]; //! Width
|
||||||
function psu_height(type) = type[4]; //! Height
|
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(type) = type[5]; //! Screw type
|
||||||
function psu_screw_hole_radius(type) = type[6]; //! Clearance hole for screw, bigger than normal on ATX
|
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
|
function atx_psu(type) = type[7]; //! True if an ATX style PSU
|
||||||
|
Reference in New Issue
Block a user