Extract mesh vertices and edges from inflatable simulation demo #385
Unanswered
jeffreybliang
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @jeffreybliang |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
In USD Composer, there is an inflatable simulation tutorial on the PhysX documentation. I would like to edit the simulation script (shown below) so that at each timestep of the simulation, the vertices and edges (if there are any) of the cloth/mesh are written to a file - this way I can reconstruct the mesh of the inflatable.
I am aware there exists PxParticleBuffer::getPositionInvMasses()/ PxParticleBuffer::getVelocities() to get the position and velocities of particles, but I'm unsure on how this would be called in the Python script below. Specifically, how to obtain these in Python at every time step.
Does anyone know how to do so? I imagine it would be like a callback function that executes with each timestep but unsure.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions