38 #include <boost/filesystem.hpp>
47 #if defined CUDA_FOUND
53 #elif defined OPENCL_FOUND
87 std::cout <<
options << std::endl;
89 string in =
options.getInputFileName()[0];
91 boost::filesystem::path selectedFile(in);
92 string extension = selectedFile.extension().string();
107 std::shared_ptr<ChunkHashGrid> cm;
113 if (extension ==
".h5")
119 project->project = scanProjectPtr;
121 for (
int i = 0; i < project->project->positions.size(); i++)
123 project->changed.push_back(
true);
125 cm = std::shared_ptr<ChunkHashGrid>(
new ChunkHashGrid(in, 50, boundingBox,
options.getChunkSize()));
134 project->project = make_shared<ScanProject>(dirScanProject);
135 std::vector<bool> init(dirScanProject.
positions.size(),
true);
136 project->changed = init;
139 else if(!boost::filesystem::is_directory(selectedFile))
145 scan->points = model->m_pointCloud;
147 scanPosPtr->scans.push_back(scan);
148 project->project->positions.push_back(scanPosPtr);
149 project->changed.push_back(
true);
154 boost::filesystem::directory_iterator it{in};
155 while (it != boost::filesystem::directory_iterator{})
157 cout << it->path().string() << endl;
158 string ext = it->path().extension().string();
164 scan->points = model->m_pointCloud;
166 scanPosPtr->scans.push_back(scan);
167 project->project->positions.push_back(scanPosPtr);
168 project->changed.push_back(
true);
176 cm = std::shared_ptr<ChunkHashGrid>(
new ChunkHashGrid(
"chunked_mesh.h5", 50, boundingBox,
options.getChunkSize()));
181 if(
options.getPartMethod() == 1)
194 for (
int i; i <
options.getVoxelSizes().size(); i++) {
199 cout <<
"Program end." << endl;