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

◆ save_mesh() [4/4]

MAYAFLUX_API bool MayaFlux::save_mesh ( const std::shared_ptr< Nodes::Network::MeshNetwork > &  network,
const std::string &  suggested_name = "output.gltf" 
)

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

Works directly on the MeshNetwork returned by choose_mesh_network(), whether or not it has ever been wrapped in a MeshNetworkBuffer or rendered: slot data lives on the network's own MeshWriterNodes. Each slot's vertices are baked into world space from its current world_transform, so an exploded or rotated network exports in the pose it is actually in. Blocks until the user confirms or cancels. Returns false on cancellation, backend error, or if Portal::System is not initialized.

Parameters
networkSource MeshNetwork to encode.
suggested_nameFilename pre-filled in the dialog name field.

Definition at line 472 of file Depot.cpp.

475{
476 return save_mesh(network, suggested_name, IO::ModelWriteOptions {});
477}
Core::GlobalNetworkConfig network
Definition Config.cpp:43
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 network, and save_mesh().

+ Here is the call graph for this function: