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

◆ save_mesh() [2/4]

MAYAFLUX_API bool MayaFlux::save_mesh ( const std::shared_ptr< Buffers::MeshBuffer > & buffer,
const std::string & suggested_name = "output.gltf" )

Present a native save-file dialog filtered to 3D model formats and save buffer to the chosen path via IOManager::save_mesh().

Blocks until the user confirms or cancels. Synchronous: MeshBuffer's mesh data is always CPU-resident, so there is no download step to queue, unlike save_image/save_volume. Returns false on cancellation, backend error, or if Portal::System is not initialized.

Parameters
bufferSource MeshBuffer to encode.
suggested_nameFilename pre-filled in the dialog name field.

Definition at line 441 of file Depot.cpp.

444{
445 return save_mesh(buffer, suggested_name, IO::ModelWriteOptions {});
446}
bool save_mesh(const std::shared_ptr< Buffers::MeshBuffer > &buffer, const std::string &suggested_name)
Present a native save-file dialog filtered to 3D model formats and save buffer to the chosen path via...
Definition Depot.cpp:441
Configuration for model writing.

References save_mesh().

Referenced by save_mesh(), and save_mesh().

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