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

◆ save_mesh() [4/4]

bool MayaFlux::IO::IOManager::save_mesh ( const std::vector< Kakshya::MeshData > &  meshes,
const std::string &  filepath,
const IO::ModelWriteOptions &  options = {} 
)

Save one or more meshes to disk asynchronously.

For callers that already have MeshData in hand (e.g. from IO::download_compute_mesh) rather than a MeshBuffer. Every entry must satisfy Kakshya::MeshData::is_valid(). Returns once the task is queued.

Definition at line 990 of file IOManager.cpp.

994{
995 track_save_task(std::async(std::launch::async,
996 [meshes, filepath, options]() -> bool {
997 return Detail::execute_mesh_write(filepath, meshes, options);
998 }));
999
1000 return true;
1001}
void track_save_task(std::future< bool > fut)
Retain a save task in m_save_tasks and opportunistically reclaim finished ones.
bool execute_mesh_write(const std::string &filepath, const std::vector< Kakshya::MeshData > &meshes, const ModelWriteOptions &options)

References MayaFlux::IO::Detail::execute_mesh_write(), and track_save_task().

+ Here is the call graph for this function: