OpenUSD
OpenUSD copied to clipboard
UsdGeomMesh has no member "GetPrimvar"
VtArray<GfVec2f> uvs;
auto uvAttr = mesh.GetPrimvar(TfToken("primvars:st")).GetAttr();
'GetPrimvar': is not a member of 'pxrInternal_v0_24__pxrReserved__::UsdGeomMesh'
This is not properly linking against the method defined on line 202 of primvarAPI.h
The file is definitely included in my headers.
Interestingly, if I pull the function itself via UsdGeomPrimvarsAPI::GetPrimvar(), the compiler will recognize the function but of course will complain because it is not a static function.
What is going on?
How can I pull the UVs from a UseGeomMesh?