|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::save_mesh | ( | const std::shared_ptr< Buffers::MeshNetworkBuffer > & | network_buffer, |
| const std::string & | filepath, | ||
| const ModelWriteOptions & | options = {} |
||
| ) |
Save a MeshNetworkBuffer's current slots to disk as one multi-mesh file, one aiMesh per slot.
Each slot's vertices (position, normal, tangent) are baked into world space from that slot's current world_transform before export, so an exploded/rotated network exports in the pose it is actually in, not its local rest pose. A slot with no node, or a node with no vertices yet, is skipped rather than failing the whole export; the export fails only if every slot is empty.
| network_buffer | Source network buffer. |
| filepath | Destination path with extension. |
| options | Format-specific writer options. |
Definition at line 225 of file ModelExport.cpp.
References diffuse_path, MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, and MF_ERROR.