PxAssembleDeformableVolumeMesh

Defined in include/cooking/PxCooking.h

physx::PxDeformableVolumeMesh *PxAssembleDeformableVolumeMesh(physx::PxTetrahedronMeshData &simulationMesh, physx::PxDeformableVolumeSimulationData &simulationData, physx::PxTetrahedronMeshData &collisionMesh, physx::PxDeformableVolumeCollisionData &collisionData, physx::PxCollisionMeshMappingData &mappingData, physx::PxInsertionCallback &insertionCallback)

Bundles all data required for deformable volume simulation.

Creates a container that provides everything to create a PxDeformableVolume

See also

PxDeformableVolume createDeformableVolume()

Parameters
  • simulationMesh[in] The geometry (tetrahedral mesh) to be used as simulation mesh

  • simulationData[in] Additional non-tetmesh data that contains mass information etc. for the simulation mesh

  • collisionMesh[in] The geometry (tetrahedral mesh) to be used for collision detection

  • collisionData[in] Additional non-tetmesh data that contains surface information, acceleration structures etc. for the simulation mesh

  • mappingData[in] Mapping that describes how the collision mesh’s vertices are embedded into the simulation mesh

  • insertionCallback[in] The insertion interface from PxPhysics.

Returns

PxDeformableVolumeMesh pointer that represents a deformable volume mesh bundling all data (simulation mesh, collision mesh etc.)