|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::save_mesh | ( | const std::shared_ptr< Nodes::Network::MeshNetwork > & | network, |
| const std::string & | filepath, | ||
| const ModelWriteOptions & | options = {} |
||
| ) |
Save a MeshNetwork's current slots to disk as one multi-mesh file.
Same shape as the MeshNetworkBuffer overload (each slot's vertices baked into world space from its current world_transform), but works directly on the network: slot data lives on MeshNetwork itself, not on the GPU buffer, so a network never wrapped in a MeshNetworkBuffer, or not yet rendered, is still exportable. The MeshNetworkBuffer overload forwards here via get_network().
| network | Source network. |
| filepath | Destination path with extension. |
| options | Format-specific writer options. |
Definition at line 190 of file ModelExport.cpp.
References diffuse_path, MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, MF_ERROR, and network.