-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.cpp
More file actions
31 lines (29 loc) · 767 Bytes
/
Copy pathtest.cpp
File metadata and controls
31 lines (29 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <headers/trace.hpp>
#include <headers/make_trace.hpp>
using namespace raytrace;
int main()
{
try
{
fs::path dir = fs::absolute("CorrLength_Series_R1000_4");
fs::create_directory(dir);
tracing tr;
tr.root_path() = dir;
tr.surface().RMSHeight() = 2.0;
for(int i = 1; i < 10; i++)
{
tr.surface().CorrLength() = 5.0 * i;
tr.run<PlaneBeam3D, TracePoint>(200000000, true);
}
for(int i = 0; i <= 15; i++)
{
tr.surface().CorrLength() = 50.0 + 10.0 * i;
tr.run<PlaneBeam3D, TracePoint>(200000000, true);
}
}
catch (std::exception & e)
{
std::cout << e.what() << std::endl;
}
return 0;
}