FnUsdAbstractionLib 15.0.8
Loading...
Searching...
No Matches
usg::Primvar Class Reference

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
 
Attributeattribute ()
 Returns the primvar attribute.
 
AttributeindicesAttribute ()
 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
 

Detailed Description

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.
www.foundry.com