threadlib/tests/test.scad
Adrian Schlatter beee1f1921 - dir structure (docs, tests, design)
- renderings for README.rst
2019-04-10 21:55:13 +02:00

27 lines
525 B
OpenSCAD

/*
Test and demonstrate thread library
:Author: Adrian Schlatter
:Date: 2019-04-07
:License: 3-Clause BSD. See LICENSE.
*/
use <threadlib/threadlib.scad>
echo ("threadlib version: ", __THREADLIB_VERSION());
type = "M12x0.5";
turns = 5;
Douter = thread_specs(str(type, "-int"))[2] * 1.2;
echo(thread_specs(str(type, "-ext")));
intersection() {
color("Green")
translate([-1000, 0, -1000])
cube(2000, 2000, 2000);
union() {
bolt(type, turns);
nut(type, turns, Douter);
};
};