| 254 | } |
| 255 | |
| 256 | void DataLoadingService::addSplatFileToScene(const std::filesystem::path& path) { |
| 257 | if (isSOGFile(path)) { |
| 258 | addSOGToScene(path); |
| 259 | } else if (isPLYFile(path)) { |
| 260 | addPLYToScene(path); |
| 261 | } else { |
| 262 | // Generic add |
| 263 | std::string name = lfs::core::path_to_utf8(path.stem()); |
| 264 | scene_manager_->addSplatFile(path, name); |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | std::expected<void, std::string> DataLoadingService::loadDataset(const std::filesystem::path& path) { |
| 269 | LOG_TIMER("LoadDataset"); |
no test coverage detected