mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-01-16 20:58:26 +01:00
beee1f1921
- renderings for README.rst
27 lines
525 B
OpenSCAD
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);
|
|
};
|
|
};
|