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

268{
269 if (!require_portal("choose_mesh"))
270 return {};
271
272 return Portal::System::Dialog::open_file<std::vector<std::shared_ptr<Buffers::MeshBuffer>>>(
273 [](const fs::path& p) { return get_io_manager()->load_mesh(p.string()); },
274 [](Core::SystemDialogError) { },
275 k_mesh_filters);
276}

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: