| 747 | } |
| 748 | |
| 749 | void NvFlexExtPullFromDevice(NvFlexExtContainer* c) |
| 750 | { |
| 751 | |
| 752 | // read back particle data |
| 753 | NvFlexGetParticles(c->mSolver, c->mParticles.buffer, int(c->mParticles.size())); |
| 754 | NvFlexGetVelocities(c->mSolver, c->mVelocities.buffer, int(c->mVelocities.size())); |
| 755 | NvFlexGetPhases(c->mSolver, c->mPhases.buffer, int(c->mPhases.size())); |
| 756 | NvFlexGetNormals(c->mSolver, c->mNormals.buffer, int(c->mNormals.size())); |
| 757 | NvFlexGetBounds(c->mSolver, c->mBoundsLower.buffer, c->mBoundsUpper.buffer); |
| 758 | |
| 759 | // read back shape transforms |
| 760 | if (c->mShapeCoefficients.size()) |
| 761 | NvFlexGetRigidTransforms(c->mSolver, c->mShapeRotations.buffer, c->mShapeTranslations.buffer); |
| 762 | |
| 763 | } |
| 764 | |
| 765 | void NvFlexExtUpdateInstances(NvFlexExtContainer* c) |
| 766 | { |
no test coverage detected