mirror of
https://github.com/DJSundog/NopSCADlib.git
synced 2024-11-23 15:23:51 -05:00
Added missing vitamin() call in magnet.scad.
This commit is contained in:
parent
7c439a687f
commit
0cf8cb7d28
@ -1687,6 +1687,13 @@ Cylindrical and ring magnets.
|
|||||||
|
|
||||||
![magnets](tests/png/magnets.png)
|
![magnets](tests/png/magnets.png)
|
||||||
|
|
||||||
|
### Vitamins
|
||||||
|
| Qty | Module call | BOM entry |
|
||||||
|
| ---:|:--- |:---|
|
||||||
|
| 1 | `magnet(MAG484)` | Magnet 6.35mm diameter, 6.35mm high, 3.175mm bore |
|
||||||
|
| 1 | `magnet(MAG8x4x4p2)` | Magnet 8mm diameter, 4mm high, 4.2mm bore |
|
||||||
|
| 1 | `magnet(MAG5x8)` | Magnet 8mm diameter, 5mm high |
|
||||||
|
|
||||||
|
|
||||||
<a href="#top">Top</a>
|
<a href="#top">Top</a>
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ module magnet(type) { //! Draw specified magnet
|
|||||||
h = magnet_h(type);
|
h = magnet_h(type);
|
||||||
r = magnet_r(type);
|
r = magnet_r(type);
|
||||||
|
|
||||||
//vitamin(str("magnet(", type[0], "): Magnet ", od, "mm diameter, ", h, "mm high", id ? str(", ", id, "mm bore") : "" ));
|
vitamin(str("magnet(", type[0], "): Magnet ", od, "mm diameter, ", h, "mm high", id ? str(", ", id, "mm bore") : "" ));
|
||||||
|
|
||||||
or = od / 2;
|
or = od / 2;
|
||||||
ir = id / 2;
|
ir = id / 2;
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
// od, id, h, r
|
// od, id, h, r
|
||||||
MAG8x4x4p2 = ["MAG8x4x4p2", 8, 4.2, 4, 0.5];
|
MAG8x4x4p2 = ["MAG8x4x4p2", 8, 4.2, 4, 0.5];
|
||||||
MAG484 = ["MAG484", inch(1/4), inch(1/8), inch(1/4), 0.5];
|
MAG484 = ["MAG484", inch(1/4), inch(1/8), inch(1/4), 0.5];
|
||||||
MAG5x8 = ["MAG484", 8, 0, 5, 0.5];
|
MAG5x8 = ["MAG5x8", 8, 0, 5, 0.5];
|
||||||
|
|
||||||
magnets = [MAG8x4x4p2, MAG484, MAG5x8];
|
magnets = [MAG8x4x4p2, MAG484, MAG5x8];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user