|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::save_mesh | ( | const std::shared_ptr< Buffers::MeshBuffer > & | buffer, |
| const std::string & | filepath, | ||
| const ModelWriteOptions & | options = {} |
||
| ) |
Save a MeshBuffer's current mesh data to disk via ModelWriterRegistry.
Synchronous: MeshData is always CPU-authoritative for MeshBuffer (every mutation path writes the CPU copy first, GPU is upload-only), so there is no GPU download step here, unlike save_image/save_volume.
| buffer | Source mesh. |
| filepath | Destination path with extension; selects the writer via ModelWriterRegistry. |
| options | Format-specific writer options. |
Definition at line 168 of file ModelExport.cpp.
References buffer, MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, and MF_ERROR.
Referenced by MayaFlux::IO::IOManager::save_mesh(), MayaFlux::IO::IOManager::save_mesh(), MayaFlux::IO::IOManager::save_mesh(), save_mesh_snapshot(), save_mesh_snapshot(), save_mesh_snapshot(), save_mesh_snapshot(), and save_mesh_snapshot().
Here is the caller graph for this function: