From 7a9e73830e16a843a14debb8d9b770243067cf63 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Fri, 12 Jan 2024 22:30:34 +0000 Subject: [PATCH] Belt part number is not always the same as the pitch. --- vitamins/belt.scad | 2 +- vitamins/belts.scad | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/vitamins/belt.scad b/vitamins/belt.scad index 4884e3b..d837d6c 100644 --- a/vitamins/belt.scad +++ b/vitamins/belt.scad @@ -65,7 +65,7 @@ module belt(type, points, belt_colour = grey(20), tooth_colour = grey(50), open arcs = info[4]; length = ceil(_belt_length(info, open) / pitch) * pitch; - part = str(type[0],pitch); + part = type[0]; vitamin(str("belt(", no_point(part), "x", width, ", ", pointsx, "): Belt ", part," x ", width, "mm x ", length, "mm")); len = len(points); diff --git a/vitamins/belts.scad b/vitamins/belts.scad index 44da42c..96a3fef 100644 --- a/vitamins/belts.scad +++ b/vitamins/belts.scad @@ -20,17 +20,17 @@ // // Belt model // -// p w t t p -// i i h o i -// t d i o t -// c t c t c -// h h k h h line from tooth base +// p w t t p +// i i h o i +// t d i o t +// c t c t c +// h h k h h line from tooth base // -T5x6 = ["T", 5, 6, 2.2, 1.2, 0.5]; -T5x10 = ["T", 5, 10, 2.2, 1.2, 0.5]; -T2p5x6 =["T", 2.5, 6, 1.7, 0.7, 0.3]; -GT2x6 = ["GT", 2.0, 6, 1.38, 0.75, 0.254]; -GT2x9 = ["GT", 2.0, 9, 1.38, 0.75, 0.254]; +T5x6 = ["T5", 5, 6, 2.2, 1.2, 0.5]; +T5x10 = ["T5", 5, 10, 2.2, 1.2, 0.5]; +T2p5x6 =["T2.5", 2.5, 6, 1.7, 0.7, 0.3]; +GT2x6 = ["GT2", 2.0, 6, 1.38, 0.75, 0.254]; +GT2x9 = ["GT2", 2.0, 9, 1.38, 0.75, 0.254]; belts = [T5x6, T5x10, T2p5x6, GT2x6, GT2x9]; use