MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::SpatialSample Struct Reference

One sample's worth of data for one named stream. More...

#include <SpatialCache.hpp>

+ Collaboration diagram for MayaFlux::IO::SpatialSample:

Public Attributes

std::span< const SpatialAttributeattributes
 
std::span< const uint64_t > ids
 
std::span< const glm::vec3 > positions
 
Portal::Graphics::PrimitiveTopology topology
 
std::span< const glm::vec3 > velocities
 
std::span< const int32_t > vertex_counts_per_curve
 

Detailed Description

One sample's worth of data for one named stream.

topology decides which of the remaining fields apply: POINT_LIST: ids/velocities meaningful, vertex_counts_per_curve must be empty (every position is its own point). LINE_LIST / LINE_STRIP: vertex_counts_per_curve required (its sum must equal positions.size()), ids/velocities must be empty (Alembic's Curves schema has neither). Any other topology is rejected: triangle data belongs to ModelWriter, not this class.

Definition at line 67 of file SpatialCache.hpp.


The documentation for this struct was generated from the following file: