newton.usd.find_deformable_visual_prims#
- newton.usd.find_deformable_visual_prims(prim)[source]#
Find the visual geometry owned by one USD deformable body.
Experimental
This function follows the AOUSD deformable proposal and may change.
Return the body’s
UsdGeom.PointBasedprims that apply neither a deformable simulation API norPhysicsCollisionAPI(the proposal’s graphics geometries), in traversal order and including instance proxies. Stop at nested deformable bodies, rigid bodies, and articulation roots. Simulation geometry is any prim applying an AOUSD deformable simulation API, or a Points prim applying Newton’sNewtonPointsDeformableSimAPI; a TetMesh without one is visual geometry, as inadd_usd(). Collision geometry is excluded even when collision is disabled.This reads ownership only. It does not filter visibility or create a simulation, embedding, or render mesh. Mesh prims can be read with
get_mesh().- Parameters:
prim (pxr.Usd.Prim) – Prim with
PhysicsDeformableBodyAPIapplied.- Returns:
Visual prims belonging to this body, not to nested bodies.
- Raises:
ValueError – If
primis invalid or lacks the deformable body API.- Return type:
list[TypeAliasForwardRef(‘pxr.Usd.Prim’)]