mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-08-23 13:52:54 +02:00
26 lines
476 B
OpenSCAD
26 lines
476 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 = "G1";
|
|
turns = 5;
|
|
Douter = thread_specs(str(type, "-int"))[2] * 1.2;
|
|
|
|
intersection() {
|
|
color("Green")
|
|
translate([-100, 0, -100])
|
|
cube(200, 200, 200);
|
|
union() {
|
|
bolt(type, turns);
|
|
nut(type, turns, Douter);
|
|
};
|
|
};
|