diff --git a/build_linux64/libamsstring4.linux64.a b/build_linux64/libamsstring4.linux64.a index d595bd8..259b44d 100644 Binary files a/build_linux64/libamsstring4.linux64.a and b/build_linux64/libamsstring4.linux64.a differ diff --git a/build_linux64/objstore/amsstring4_tests1.o b/build_linux64/objstore/amsstring4_tests1.o index 4e49689..0989610 100644 Binary files a/build_linux64/objstore/amsstring4_tests1.o and b/build_linux64/objstore/amsstring4_tests1.o differ diff --git a/build_linux64/tests b/build_linux64/tests index 4c48fac..68fc482 100644 Binary files a/build_linux64/tests and b/build_linux64/tests differ diff --git a/ref/0p375_hexbolt.scad b/ref/0p375_hexbolt.scad new file mode 100644 index 0000000..c9636fc --- /dev/null +++ b/ref/0p375_hexbolt.scad @@ -0,0 +1,28 @@ + +use + + +module acmehexbolt_0p375(L) +{ + +Lh = 0.25; +Dh = 0.75; +Dth = 0.375; +Lth = L-Lh-0.125; + +union() +{ + translate([0,0,0]) + { + cylinder(d=Dh,h=Lh,$fn=6); + } + translate([0,0,Lh-0.125]) + { + thread_10tpi(Dth,Lth); + } +} + +} + + +acmehexbolt_0p375(4); \ No newline at end of file diff --git a/ref/testrewrite.scad b/ref/testrewrite.scad new file mode 100644 index 0000000..c9636fc --- /dev/null +++ b/ref/testrewrite.scad @@ -0,0 +1,28 @@ + +use + + +module acmehexbolt_0p375(L) +{ + +Lh = 0.25; +Dh = 0.75; +Dth = 0.375; +Lth = L-Lh-0.125; + +union() +{ + translate([0,0,0]) + { + cylinder(d=Dh,h=Lh,$fn=6); + } + translate([0,0,Lh-0.125]) + { + thread_10tpi(Dth,Lth); + } +} + +} + + +acmehexbolt_0p375(4); \ No newline at end of file diff --git a/src/amsstring4/amsstring4_tests1.cpp b/src/amsstring4/amsstring4_tests1.cpp index d95cdf3..e399ea9 100644 --- a/src/amsstring4/amsstring4_tests1.cpp +++ b/src/amsstring4/amsstring4_tests1.cpp @@ -427,8 +427,8 @@ namespace ams amsstring q; std::vector q2; - fp = fopen("../ref/0p375_hexbolt.scad","r"); - fp2 = fopen("../ref/testrewrite.scad","w+"); + fp = fopen("./ref/0p375_hexbolt.scad","r"); + fp2 = fopen("./ref/testrewrite.scad","w+"); I = 0; while(!feof(fp)) diff --git a/src/main.cpp b/src/main.cpp index 7189c5a..bb912c9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ int main(int argc, char* argv[]) amsstring4_test_splitlines(); amsstring4_test_split(); amsstring4_test_strip(); - //amsstring4_test_freadwrite(); + amsstring4_test_freadwrite(); amsstring4_test_concatenation_operators();