PhysxAutoDeformableBodyAPI#

Turns on automatic generation of a deformable body’s simulation and collision meshes from a cooking source mesh, read on the prim carrying OmniPhysicsDeformableBodyAPI when PhysxAutoDeformableBodyAPI is listed in its usd-schemas. It also gates the PhysxAutoDeformableMeshSimplificationAPI and PhysxAutoDeformableHexahedralMeshAPI reads, and an explicit request to auto-cook the body requires it.

  • Applies to: Xformable

  • Requires on the same prim: OmniPhysicsDeformableBodyAPI

  • Read only when listed in usd-schemas.

  • No builder: ovphysx.population and Population.hpp do not write this component; the consumer reads it when another population writes it.

What USD population writes#

Published like any applied physics API: every declared attribute at its resolved value, the relationship only when authored. No column is rewritten or created by the producer.

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

physxDeformableBody:autoDeformableBodyEnabled

bool8

none

true

resolved USD value (authored, else raw fallback)

false diverges

false: no automatic generation. Body creation does not cook, so the simulation and collision mesh data already on the stage is used, and an explicit auto-cook request logs ‘expected auto configuration’. USD’s fallback is true, so write the value.

physxDeformableBody:cookingSourceMesh

uint64 array, RELATIONSHIP_PATH_ID

not written

No cooking source: with generation on, the cook warns ‘deformable has no valid source mesh for cooking’ and produces nothing. Only the first target is used and it must be a Mesh; its bind pose is the OmniPhysicsDeformablePoseAPI instance whose purpose is bindPose.

Interactions#

  • OmniPhysicsDeformableBodyAPI: Read only on a prim enumerated by OmniPhysicsDeformableBodyAPI that the ovstage walker accepts as a deformable body: a Mesh, TetMesh or BasisCurves, or an Xformable that is not a Gprim, with exactly one simulation mesh (OmniPhysicsVolumeDeformableSimAPI or OmniPhysicsSurfaceDeformableSimAPI) on the prim itself or an immediate child.

  • PhysxAutoDeformableMeshSimplificationAPI: Its columns are read only when this API is listed too.

  • PhysxAutoDeformableHexahedralMeshAPI: Its column is read only when this API is listed too, and only for a volume body.

Notes#

  • Cooking also reads and writes physxDeformableBody:deformableBodyDataCrc on the body prim, and attachment generation reads it; it is a runtime bookkeeping attribute that no schema declares and is not described here.