2019-04-07 19:38:09 +02:00
|
|
|
/*
|
|
|
|
Test and demonstrate thread library
|
2019-04-06 19:08:44 +02:00
|
|
|
|
2019-04-07 19:38:09 +02:00
|
|
|
:Author: Adrian Schlatter
|
|
|
|
:Date: 2019-04-07
|
|
|
|
:License: 3-Clause BSD. See LICENSE.
|
|
|
|
*/
|
2019-04-06 19:08:44 +02:00
|
|
|
|
2019-04-08 10:43:30 +02:00
|
|
|
use <threadlib/threadlib.scad>
|
|
|
|
|
|
|
|
echo ("threadlib version: ", __THREADLIB_VERSION());
|
2019-04-06 19:08:44 +02:00
|
|
|
|
2019-04-09 21:57:32 +02:00
|
|
|
type = "M12x0.5";
|
2019-04-06 19:08:44 +02:00
|
|
|
turns = 5;
|
2019-04-07 19:38:09 +02:00
|
|
|
Douter = thread_specs(str(type, "-int"))[2] * 1.2;
|
2019-04-06 19:08:44 +02:00
|
|
|
|
2019-04-09 21:57:32 +02:00
|
|
|
echo(thread_specs(str(type, "-ext")));
|
2019-04-06 19:08:44 +02:00
|
|
|
intersection() {
|
|
|
|
color("Green")
|
2019-04-09 21:57:32 +02:00
|
|
|
translate([-1000, 0, -1000])
|
|
|
|
cube(2000, 2000, 2000);
|
2019-04-06 19:08:44 +02:00
|
|
|
union() {
|
|
|
|
bolt(type, turns);
|
2019-04-07 19:38:09 +02:00
|
|
|
nut(type, turns, Douter);
|
2019-04-06 19:08:44 +02:00
|
|
|
};
|
|
|
|
};
|