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

One named, scoped channel of already-typed values. More...

#include <SpatialCache.hpp>

+ Collaboration diagram for MayaFlux::IO::SpatialAttribute:

Public Attributes

std::string name
 
SpatialScope scope
 
Kakshya::DataVariant values
 

Detailed Description

One named, scoped channel of already-typed values.

values holds one of Kakshya::DataVariant's float/glm::vec2/glm::vec3/ uint32_t vectors, sized per SpatialScope against the sample it is attached to (1 for Constant, curve count for Uniform, point/vertex count for Varying). Any other DataVariant alternative is rejected: those are the only four with a native Alembic GeomParam counterpart (OFloatGeomParam/OV2fGeomParam/OV3fGeomParam/OUInt32GeomParam).

A vec3 named exactly "color" or "normal" is declared through Alembic's dedicated color/normal GeomParam types instead of a plain vector one, so an importer recognizes it as such rather than an arbitrary direction; every other name, vec3 or otherwise, stays generic. MayaFlux's own vertex fields already use these two names for these two roles, so this costs a caller nothing to opt into.

Definition at line 48 of file SpatialCache.hpp.


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