|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| 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.
| network | Source MeshNetwork to encode. |
| suggested_name | Filename pre-filled in the dialog name field. |
Definition at line 472 of file Depot.cpp.
References network, and save_mesh().
Here is the call graph for this function: