mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-08-13 18:24:35 +02:00
- dir structure (docs, tests, design)
- renderings for README.rst
This commit is contained in:
26
tests/test.scad
Normal file
26
tests/test.scad
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
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);
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user