USD icon indicating copy to clipboard operation
USD copied to clipboard

UsdGeomTetMesh: unexpected imaging behavior with primvars

Open cameronwhite opened this issue 2 months ago • 6 comments

Description of Issue

Hydra displays UsdGeomTetMesh by showing its surface triangles, but this appears to also pass along any primvars from the tet mesh to the triangle mesh without further validation, which can cause problems with uniform or faceVarying interpolation. For example, if there is a uniform primvar with a value for each tetrahedron, this may not match the ordering or number of surface triangles. The attached files demonstrate this with primvars:displayColor, showing the TetMesh side by side with the expected result as a Mesh

Steps to Reproduce

  1. From the attached file (tetmesh_primvars.zip ), open either of the .usda files in usdview. One file has the same number of tets as surface triangles and shows the colors being displayed in an unexpected order, and then other contains a single tet where the colors aren't displayed by Storm due to the primvar having fewer values than the number of surface triangles.

tetmesh_1 tetmesh_2

System Information (OS, Hardware)

Ubuntu 22.04

Package Versions

USD 24.03

cameronwhite avatar May 09 '24 16:05 cameronwhite