1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-09-03 10:02:51 +02:00

Better BOM format

This commit is contained in:
Chris Palmer
2012-04-02 15:30:31 +01:00
parent b2ea9b14af
commit d61dc7fa2d
50 changed files with 604 additions and 601 deletions

View File

@@ -27,20 +27,20 @@ include <../vitamins/electronics.scad>
module rod(d , l) {
vitamin(str("RD", d, round(l), ": Smooth rod ", d, " x ", round(l)));
vitamin(str("RD", d, round(l), ": Smooth rod ", d, "mm x ", round(l), "mm"));
color(rod_color)
cylinder(r = d / 2, h = l, center = true);
}
module studding(d , l) {
vitamin(str("ST", d, round(l),": Threaded rod ", d, " x ", round(l)));
vitamin(str("ST", d, round(l),": Threaded rod M", d, " x ", round(l), "mm"));
color(studding_color)
cylinder(r = d / 2, h = l, center = true);
}
module tubing(od, id, length) {
vitamin(str("TB", od, id, length,": Tubing OD ",od, " ID ", id," x ",length));
vitamin(str("TB", od, id, length,": Tubing OD ",od, "mm ID ", id,"mm x ",length, "mm"));
color(tubing_color) render() difference() {
cylinder(r = od / 2, h = length, center = true);
cylinder(r = id / 2, h = length + 1, center = true);