mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-06 15:36:30 +02:00
Belt part number is not always the same as the pitch.
This commit is contained in:
@@ -65,7 +65,7 @@ module belt(type, points, belt_colour = grey(20), tooth_colour = grey(50), open
|
|||||||
arcs = info[4];
|
arcs = info[4];
|
||||||
length = ceil(_belt_length(info, open) / pitch) * pitch;
|
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"));
|
vitamin(str("belt(", no_point(part), "x", width, ", ", pointsx, "): Belt ", part," x ", width, "mm x ", length, "mm"));
|
||||||
|
|
||||||
len = len(points);
|
len = len(points);
|
||||||
|
@@ -26,11 +26,11 @@
|
|||||||
// c t c t c
|
// c t c t c
|
||||||
// h h k h h line from tooth base
|
// h h k h h line from tooth base
|
||||||
//
|
//
|
||||||
T5x6 = ["T", 5, 6, 2.2, 1.2, 0.5];
|
T5x6 = ["T5", 5, 6, 2.2, 1.2, 0.5];
|
||||||
T5x10 = ["T", 5, 10, 2.2, 1.2, 0.5];
|
T5x10 = ["T5", 5, 10, 2.2, 1.2, 0.5];
|
||||||
T2p5x6 =["T", 2.5, 6, 1.7, 0.7, 0.3];
|
T2p5x6 =["T2.5", 2.5, 6, 1.7, 0.7, 0.3];
|
||||||
GT2x6 = ["GT", 2.0, 6, 1.38, 0.75, 0.254];
|
GT2x6 = ["GT2", 2.0, 6, 1.38, 0.75, 0.254];
|
||||||
GT2x9 = ["GT", 2.0, 9, 1.38, 0.75, 0.254];
|
GT2x9 = ["GT2", 2.0, 9, 1.38, 0.75, 0.254];
|
||||||
|
|
||||||
belts = [T5x6, T5x10, T2p5x6, GT2x6, GT2x9];
|
belts = [T5x6, T5x10, T2p5x6, GT2x6, GT2x9];
|
||||||
use <belt.scad>
|
use <belt.scad>
|
||||||
|
Reference in New Issue
Block a user