MayaFlux 1.0.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 278 of file Depot.cpp.

279{
280 if (!require_portal("choose_mesh_network"))
281 return nullptr;
282
283 return Portal::System::Dialog::open_file<std::shared_ptr<Nodes::Network::MeshNetwork>>(
284 [r = std::move(resolver)](const fs::path& p) mutable {
285 return get_io_manager()->load_mesh_network(p.string(), std::move(r));
286 },
287 [](Core::SystemDialogError) { },
288 k_mesh_filters);
289}
std::shared_ptr< IO::IOManager > get_io_manager()
Retrieves the global IOManager instance for file loading and buffer management.
Definition Depot.cpp:575

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: