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

◆ choose_mesh()

MAYAFLUX_API std::vector< std::shared_ptr< Buffers::MeshBuffer > > MayaFlux::choose_mesh ( )

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

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

Definition at line 155 of file Depot.cpp.

156{
157 if (!require_portal("choose_mesh"))
158 return {};
159
160 return Portal::System::Dialog::open_file<std::vector<std::shared_ptr<Buffers::MeshBuffer>>>(
161 [](const fs::path& p) { return get_io_manager()->load_mesh(p.string()); },
162 [](Core::SystemDialogError) { },
163 k_mesh_filters);
164}

References get_io_manager().

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

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