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

◆ save_mesh_snapshot() [2/5]

bool MayaFlux::IO::save_mesh_snapshot ( const std::shared_ptr< Buffers::MeshBuffer > &  buffer,
const std::string &  path_pattern,
const ModelWriteOptions options = {} 
)

Save with a millisecond epoch timestamp spliced into the path.

For the "save whenever, whatever it looks like right now" case: a caller watching a live-deforming mesh who wants to catch a particular passing state, as many times as they like, without managing a counter or overwriting the last capture. Needs no state of its own, unlike a frame-numbered sequence.

Parameters
bufferSource mesh.
path_patternPath with one std::format replacement field for the timestamp, e.g. "drone_{}.obj".
optionsFormat-specific writer options.
Returns
True on success. Failure is logged.

Definition at line 378 of file ModelExport.cpp.

382{
383 return save_mesh(buffer, splice_timestamp(path_pattern), options);
384}
std::shared_ptr< NetworkGeometryBuffer > buffer
bool save_mesh(const std::shared_ptr< Buffers::MeshBuffer > &buffer, const std::string &suggested_name)
Present a native save-file dialog filtered to 3D model formats and save buffer to the chosen path via...
Definition Depot.cpp:284

References buffer, and save_mesh().

+ Here is the call graph for this function: