40 #include <boost/filesystem.hpp>
60 if (boost::filesystem::exists(
options.getChunkedMesh()))
67 if (!boost::filesystem::exists(
"area"))
69 boost::filesystem::create_directories(
"area");
84 if (!boost::filesystem::is_directory(outputPath))
86 boost::filesystem::create_directories(outputPath);
89 float size =
options.getChunkSize();
90 float maxChunkOverlap =
options.getMaxChunkOverlap();
95 boost::filesystem::path selectedFile(files[0]);
96 std::string extension = selectedFile.extension().string();
98 if (extension ==
".h5")
110 std::vector<lvr2::MeshBufferPtr> meshes;
111 std::vector<std::string> layers;
112 for(
size_t i = 0; i < files.size(); ++i)
115 layers.push_back(std::string(
"mesh") + std::to_string(i));
116 meshBuffer = model->m_mesh;
119 meshes.push_back(meshBuffer);
123 lvr2::ChunkManager chunker(meshes, size, maxChunkOverlap, outputPath.string(), layers);