|
FnUsdAbstractionLib 15.0.8
|
A class representing a primvar attribute. This has extra methods for dealing with indices, flattening values and so on. More...
#include <Primvar.h>
Public Member Functions | |
| Primvar (const Prim &prim, const Token &name) | |
| bool | isValid () const |
| Returns true if the primvar is valid. | |
| operator bool () const | |
| Attribute & | attribute () |
| Returns the primvar attribute. | |
| Attribute & | indicesAttribute () |
| Returns the primvar indices attribute if it exists. | |
| Token | getInterpolation () const |
| Returns the interpolation of the attribute. | |
| template<class T > | |
| bool | computeFlattened (Array< T > &flattenedValues, fdk::TimeValue time=fdk::defaultTimeValue()) const |
| Computes the flattened primver attributes from the attribute and its indices. If there are no indices, just returns the straight values. | |
Protected Attributes | |
| Prim | _prim |
| Attribute | _attr |
| Attribute | _indicesAttr |
A class representing a primvar attribute. This has extra methods for dealing with indices, flattening values and so on.
| ©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |