updated tests
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
28
ref/0p375_hexbolt.scad
Normal file
28
ref/0p375_hexbolt.scad
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
use <threads1.scad>
|
||||
|
||||
|
||||
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);
|
28
ref/testrewrite.scad
Normal file
28
ref/testrewrite.scad
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
use <threads1.scad>
|
||||
|
||||
|
||||
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);
|
@ -427,8 +427,8 @@ namespace ams
|
||||
amsstring q;
|
||||
std::vector<amsstring> 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))
|
||||
|
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user