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

◆ save_mesh() [3/4]

bool MayaFlux::IO::IOManager::save_mesh ( const std::shared_ptr< Nodes::Network::MeshNetwork > &  network,
const std::string &  filepath,
const IO::ModelWriteOptions &  options = {} 
)

Save a MeshNetwork's current slots to disk asynchronously.

Slot data lives on MeshWriterNode, CPU-resident the same way MeshBuffer's is, whether or not the network is wrapped in a MeshNetworkBuffer or has ever been rendered. Each slot's vertices are baked into world space from its current world_transform. Returns once the task is queued.

Parameters
networkSource network.
filepathDestination path with extension.
optionsFormat-specific writer options.
Returns
True once the task is queued.

Definition at line 1003 of file IOManager.cpp.

1007{
1008 track_save_task(std::async(std::launch::async,
1009 [network, filepath, options]() -> bool {
1010 return IO::save_mesh(network, filepath, options);
1011 }));
1012
1013 return true;
1014}
Core::GlobalNetworkConfig network
Definition Config.cpp:43
void track_save_task(std::future< bool > fut)
Retain a save task in m_save_tasks and opportunistically reclaim finished ones.
bool 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.

References network, MayaFlux::IO::save_mesh(), and track_save_task().

+ Here is the call graph for this function: