PxCreateDeformableVolumeMesh

Defined in include/cooking/PxCooking.h

physx::PxDeformableVolumeMesh *PxCreateDeformableVolumeMesh(const physx::PxCookingParams &params, const physx::PxTetrahedronMeshDesc &simulationMeshDesc, const physx::PxTetrahedronMeshDesc &collisionMeshDesc, const physx::PxDeformableVolumeSimulationDataDesc &simulationDataDesc, physx::PxInsertionCallback &insertionCallback)

Cooks and creates a deformable volume mesh without going through a stream.

See also

PxCookTriangleMesh() PxPhysics.createTriangleMesh() PxInsertionCallback

Note

This method does the same as PxCookDeformableVolumeMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline.

Note

PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxGetStandaloneInsertionCallback().

Parameters
  • params[in] The cooking parameters

  • simulationMeshDesc[in] The tetrahedron mesh descriptor to read the simulation mesh from.

  • collisionMeshDesc[in] The tetrahedron mesh descriptor to read the collision mesh from.

  • simulationDataDesc[in] The deformable volume data descriptor to read mapping information from.

  • insertionCallback[in] The insertion interface from PxPhysics.

Returns

PxDeformableVolumeMesh pointer on success.