MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ choose_mesh_network()

MAYAFLUX_API std::shared_ptr< Nodes::Network::MeshNetwork > MayaFlux::choose_mesh_network ( IO::TextureResolver  resolver = nullptr)

Present a native open-file dialog filtered to 3D model formats and load the chosen file as a MeshNetwork via IOManager::load_mesh_network().

Parameters
resolverOptional texture resolver; null uses the IOManager default.

Blocks until the user confirms or cancels. Returns nullptr on cancellation, backend error, or if Portal::System is not initialized.

Definition at line 166 of file Depot.cpp.

167{
168 if (!require_portal("choose_mesh_network"))
169 return nullptr;
170
171 return Portal::System::Dialog::open_file<std::shared_ptr<Nodes::Network::MeshNetwork>>(
172 [r = std::move(resolver)](const fs::path& p) mutable {
173 return get_io_manager()->load_mesh_network(p.string(), std::move(r));
174 },
175 [](Core::SystemDialogError) { },
176 k_mesh_filters);
177}
std::shared_ptr< IO::IOManager > get_io_manager()
Retrieves the global IOManager instance for file loading and buffer management.
Definition Depot.cpp:256

References get_io_manager().

Referenced by MayaFlux::Creator::read_mesh_network().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: