mirror of
https://github.com/adrianschlatter/threadlib.git
synced 2025-01-16 20:58:26 +01:00
827723d1b1
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.
5 lines
24 B
Awk
5 lines
24 B
Awk
/^[^#]/ {
|
|
print $0;
|
|
}
|
|
|