TetMesh (volume deformable meshes)#

Tetrahedral mesh used as the simulation and collision mesh of a volume deformable body. The runtime accepts a prim of type TetMesh and also any prim with readable, non-empty tetVertexIndices; deformable body creation, cooking, attachments and tensor views read its tet and surface-triangle connectivity.

What USD population writes#

The runtime assumes that ovstage population writes usd-prim-type Mesh for a UsdGeomTetMesh, so on a populated Stage the TetMesh type id does not appear and the tet mesh is recognised by its tetVertexIndices.

Columns#

Raw fallback is the USD schema value. Producer writes is what ovstage population puts in the column for a USD stage. Parser default applies on the consumer when the column is absent, in stage units. diverges means writing the raw fallback literally parses differently from omitting the column (the parser default): USD population may well publish that very value for an unauthored attribute, so the marker is about the column being present, not about its value.

Column

Type

Units

Raw fallback

Producer writes

Parser default

If absent

tetVertexIndices

int32[4] array

none

not written

No tets. A prim whose type is not TetMesh is then not taken for a tet mesh, so a volume deformable using it as simulation or collision mesh is not created (cooking and creation log a warning), and attachment, filter and tensor-view code over it gives up as well.

surfaceFaceVertexIndices

int32[3] array

none

not written

No surface triangles. A volume deformable’s collision mesh needs them: cooking and creation log a warning and the body is not created, and attachments and collision filters on that mesh find no surface. A tet mesh used only as a simulation mesh does not need them.

Interactions#

  • OmniPhysicsVolumeDeformableSimAPI: The simulation mesh of a volume deformable carries that API and must be tet-mesh-like; the collision mesh must be tet-mesh-like and have surfaceFaceVertexIndices.

Notes#

  • The same deformable code also reads points (named like Mesh’s points column) and the rest-shape and bind-pose attributes of the deformable APIs; they are not described here.