5 Commits

Author SHA1 Message Date
Adrian Schlatter
827723d1b1 Eliminate threads.xlsx
Replaces threads.xlsx by one .csv file and one awk script per thread
type. The script calculates threadlib specs from the data in the .csv
file. Finally and as before, autogenerate.awk generates the OpenSCAD
code (i.e. THREAD_TABLE.scad).

A new Makefile automates this process: make does what is needed. It
also provides a target 'test' to run the (existing) tests.

To add a new thread type:

- provide newthread.csv
- provide newthread.awk
- modify Makefile to generate your new threads
- add appropriate tests

Additionally:

- fixed bug in Rrot when DRmax is too large.
- reduced number of significant figures to a resolution of 0.1 um
  (while not extremely generous for the very finest threads, it
  should be enough by far for any 3D-prints).
- increased test limit for thread angle deviations (necessary due to
  reduced number of significant figures)
- added test counter: 'make test' now prints number of tests run +
  number of threads tested.
- For unknown reasons (MacOS awk?) final match-all rule in
  test_table.awk does not match with double-quotes. Work-around: Match
  without double-quotes.
2019-05-05 22:29:09 +02:00
Adrian Schlatter
fb0d9d1d21 Unit tests for Rrot
Makefile for unit testing
2019-04-14 18:15:55 +02:00
Adrian Schlatter
e4faa5ab0c internal threads => negative radius of rotation
user does not need to rotate internal threads by 180 deg anymore
to fit external thread. nut module also does not need to rotate
anymore
2019-04-14 17:52:43 +02:00
Adrian Schlatter
46fcbc9395 unit tests for THREAD_TABLE.scad + fixed problems found 2019-04-14 12:37:07 +02:00
Adrian Schlatter
beee1f1921 - dir structure (docs, tests, design)
- renderings for README.rst
2019-04-10 21:55:13 +02:00