mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-08-11 14:03:58 +02:00
Metric Threads - Coarse / Fine / Super-Fine Pitches
This commit is contained in:
11
README.rst
11
README.rst
@@ -27,17 +27,17 @@ inside the ranges allowed by the norms.
|
|||||||
Usage
|
Usage
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
To create a bolt (without head) with 10 turns of G1-inch thread:
|
To create a bolt (without head) with 10 turns of M12 thread:
|
||||||
|
|
||||||
.. code-block:: OpenSCAD
|
.. code-block:: OpenSCAD
|
||||||
|
|
||||||
bolt("G1", turns=10);
|
bolt("M12x0.5", turns=10);
|
||||||
|
|
||||||
A nut:
|
A nut:
|
||||||
|
|
||||||
.. code-block:: OpenSCAD
|
.. code-block:: OpenSCAD
|
||||||
|
|
||||||
nut("G1", turns=10, Douter=40);
|
nut("M12x0.5", turns=10, Douter=40);
|
||||||
|
|
||||||
Note that for a nut you also have to specify an outer diameter. The inner
|
Note that for a nut you also have to specify an outer diameter. The inner
|
||||||
diameter is implicitly given by the thread designator ("G1" in this case).
|
diameter is implicitly given by the thread designator ("G1" in this case).
|
||||||
@@ -69,8 +69,8 @@ List of supported threads
|
|||||||
|
|
||||||
Currently, threadlib knows these threads:
|
Currently, threadlib knows these threads:
|
||||||
|
|
||||||
- British Standard Pipe Parallel Threadss G1/16 to G6
|
- British Standard Pipe Parallel Threads G1/16 to G6
|
||||||
|
- Metric threads (coarse, fine, and super-fine pitches) M0.25 to M600
|
||||||
|
|
||||||
Extensibility
|
Extensibility
|
||||||
===========================
|
===========================
|
||||||
@@ -97,5 +97,6 @@ for addition to threadlib!
|
|||||||
Change Log
|
Change Log
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
- 0.2: Metric threads
|
||||||
- 0.1: Initial release supporting BSP parallel thread
|
- 0.1: Initial release supporting BSP parallel thread
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@@ -2,5 +2,5 @@ BEGIN { FS = "," ; RS = "\n"
|
|||||||
print "/* This script is auto-generated - do not edit"
|
print "/* This script is auto-generated - do not edit"
|
||||||
print " :License: 3-clause BSD. See LICENSE. */"
|
print " :License: 3-clause BSD. See LICENSE. */"
|
||||||
printf "\nTHREAD_TABLE = [" }
|
printf "\nTHREAD_TABLE = [" }
|
||||||
/^[GP]/ { print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" $7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],"}
|
/^[GPM]/ { print "[\"" $1 "\", [" $2 ", " $3 ", " $4 ", [[" $5 ", " $6 "], [" $7 ", " $8 "], [" $9 ", " $10 "], [" $11 ", " $12 "]]]],"}
|
||||||
END { print "];" }
|
END { print "];" }
|
||||||
|
@@ -10,14 +10,15 @@ use <threadlib/threadlib.scad>
|
|||||||
|
|
||||||
echo ("threadlib version: ", __THREADLIB_VERSION());
|
echo ("threadlib version: ", __THREADLIB_VERSION());
|
||||||
|
|
||||||
type = "G1";
|
type = "M12x0.5";
|
||||||
turns = 5;
|
turns = 5;
|
||||||
Douter = thread_specs(str(type, "-int"))[2] * 1.2;
|
Douter = thread_specs(str(type, "-int"))[2] * 1.2;
|
||||||
|
|
||||||
|
echo(thread_specs(str(type, "-ext")));
|
||||||
intersection() {
|
intersection() {
|
||||||
color("Green")
|
color("Green")
|
||||||
translate([-100, 0, -100])
|
translate([-1000, 0, -1000])
|
||||||
cube(200, 200, 200);
|
cube(2000, 2000, 2000);
|
||||||
union() {
|
union() {
|
||||||
bolt(type, turns);
|
bolt(type, turns);
|
||||||
nut(type, turns, Douter);
|
nut(type, turns, Douter);
|
||||||
|
BIN
threads.xlsx
BIN
threads.xlsx
Binary file not shown.
Reference in New Issue
Block a user