HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
primvarUtils.h File Reference
#include "api.h"
#include <GT/GT_Handles.h>
#include <GT/GT_Types.h>
#include <UT/UT_Optional.h>
#include <UT/UT_StringHolder.h>
#include <pxr/base/vt/value.h>
#include <pxr/pxr.h>
#include <pxr/usd/sdf/path.h>
+ Include dependency graph for primvarUtils.h:

Go to the source code of this file.

Classes

struct  GusdPrimvarInfo
 

Functions

GUSD_API GT_DataArrayHandle GusdConvertPrimvarData (const GusdPrimvarInfo &primvar)
 
GUSD_API GT_DataArrayHandle GusdConvertPrimvarsToIndexPairData (const GusdPrimvarInfo &indices_primvar, const GusdPrimvarInfo &weights_primvar, const VtTokenArray &joint_names)
 

Function Documentation

GUSD_API GT_DataArrayHandle GusdConvertPrimvarData ( const GusdPrimvarInfo primvar)

Converts the primvar to a GT_DataArray. The caller is responsible for choosing how to insert it into the appropriate GT_AttributeList that it manages.

GUSD_API GT_DataArrayHandle GusdConvertPrimvarsToIndexPairData ( const GusdPrimvarInfo indices_primvar,
const GusdPrimvarInfo weights_primvar,
const VtTokenArray &  joint_names 
)

Index-pair attributes are a special case, which are represented in USD with separate primvars for the indices and weights.