OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

UsdGeomMesh has no member "GetPrimvar"

Open msf567 opened this issue 7 months ago • 2 comments


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?

msf567 avatar Jul 03 '24 17:07 msf567