PxCookDeformableVolumeMesh#

Defined in include/cooking/PxCooking.h

bool PxCookDeformableVolumeMesh(
const physx::PxCookingParams &params,
const physx::PxTetrahedronMeshDesc &simulationMeshDesc,
const physx::PxTetrahedronMeshDesc &collisionMeshDesc,
const physx::PxDeformableVolumeSimulationDataDesc &simulationDataDesc,
physx::PxOutputStream &stream,
)#

Cooks a deformable volume mesh.

The results are written to the stream.

To create a deformable volume mesh object it is necessary to first ‘cook’ the mesh data into a form which allows the SDK to perform efficient collision detection and to store data used during the FEM calculations.

PxCookDeformableVolumeMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.

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.

  • stream[in] User stream to output the cooked data.

Returns:

true on success