newton.usd.find_tetmesh_prims#
- newton.usd.find_tetmesh_prims(stage)[source]#
Find all prims with the
UsdGeom.TetMeshschema in a USD stage.Example
from pxr import Usd import newton.usd stage = Usd.Stage.Open("scene.usda") prims = newton.usd.find_tetmesh_prims(stage) tetmeshes = [newton.usd.get_tetmesh(p) for p in prims]
- Parameters:
stage (pxr.Usd.Stage) – The USD stage to search.
- Returns:
All prims in the stage that have the TetMesh schema.
- Return type:
list[Usd.Prim]