Added missing vitamin() call in magnet.scad.

This commit is contained in:
Chris Palmer 2021-01-04 01:04:04 +00:00
parent 7c439a687f
commit 0cf8cb7d28
3 changed files with 9 additions and 2 deletions

View File

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

View File

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

View File

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