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

◆ make_network_geometry_source()

MAYAFLUX_API SpatialCaptureSource MayaFlux::IO::make_network_geometry_source ( std::string stream_name,
std::shared_ptr< Buffers::NetworkGeometryBuffer > buffer )
nodiscard

Build a SpatialCaptureSource that packs a NetworkGeometryBuffer's driving network through write_network_geometry_buffer_sample() each tick.

Parameters
stream_nameStream name within the target archive.
bufferSource buffer, held for the source's lifetime.

Definition at line 19 of file SpatialTransfer.cpp.

22{
24 .stream_name = std::move(stream_name),
25 .capture_frame = [buffer](SpatialCache& cache, const std::string& name) {
26 return write_network_geometry_buffer_sample(cache, name, buffer);
27 }
28 };
29}
Alembic-backed writer for time-sampled spatial entity state: particle systems, point clouds,...
bool write_network_geometry_buffer_sample(SpatialCache &cache, const std::string &stream_name, const std::shared_ptr< Buffers::NetworkGeometryBuffer > &buffer)
Pack a NetworkGeometryBuffer's driving network into one or more SpatialCache streams,...
One named stream a SpatialCapture (or save_spatial_snapshot) writes into a SpatialCache each tick.

References write_network_geometry_buffer_sample().

Here is the call graph for this function: