From 0cf8cb7d28ba0533228c66a62f8e0dfeda470297 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 4 Jan 2021 01:04:04 +0000 Subject: [PATCH] Added missing vitamin() call in magnet.scad. --- readme.md | 7 +++++++ vitamins/magnet.scad | 2 +- vitamins/magnets.scad | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index cdc3aaf..91b722b 100644 --- a/readme.md +++ b/readme.md @@ -1687,6 +1687,13 @@ Cylindrical and ring magnets. ![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 | + Top diff --git a/vitamins/magnet.scad b/vitamins/magnet.scad index 9659fa8..33efb00 100644 --- a/vitamins/magnet.scad +++ b/vitamins/magnet.scad @@ -33,7 +33,7 @@ module magnet(type) { //! Draw specified magnet h = magnet_h(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; ir = id / 2; diff --git a/vitamins/magnets.scad b/vitamins/magnets.scad index f2be322..714d41f 100644 --- a/vitamins/magnets.scad +++ b/vitamins/magnets.scad @@ -23,7 +23,7 @@ // od, id, h, r MAG8x4x4p2 = ["MAG8x4x4p2", 8, 4.2, 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];