MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / addSplatFile

Method addSplatFile

src/visualizer/visualizer_impl.cpp:1582–1592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1580 }
1581
1582 std::expected<void, std::string> VisualizerImpl::addSplatFile(const std::filesystem::path& path) {
1583 if (!initialize()) {
1584 return std::unexpected("Failed to initialize visualizer");
1585 }
1586 try {
1587 data_loader_->addSplatFileToScene(path);
1588 return {};
1589 } catch (const std::exception& e) {
1590 return std::unexpected(std::format("Failed to add splat file: {}", e.what()));
1591 }
1592 }
1593
1594 std::expected<void, std::string> VisualizerImpl::loadDataset(const std::filesystem::path& path) {
1595 LOG_TIMER("LoadDataset");

Callers

nothing calls this directly

Calls 3

formatFunction · 0.85
addSplatFileToSceneMethod · 0.80
whatMethod · 0.45

Tested by

no test coverage detected