5 Main class to manage the whole program.
6 Include reading file, slicing each layer and writting to file,
17 #include "Configurations.hh"
26 int finishedCount = 0; // count for each finished layers
28 std::string stl_target; // original stl file name
29 std::string gcode_target; // the name for outputting gcode file
30 std::vector<Layer> layers; // contain each layers with loops and gcode
31 std::thread threads[NUM_THREADS];
32 std::mutex checkMutex;
33 std::mutex countMutex;
38 Slicer(std::string& filename);
39 Slicer(const char* filename);