PxCookTetrahedronMesh

Defined in include/cooking/PxCooking.h

bool PxCookTetrahedronMesh(const physx::PxCookingParams &params, const physx::PxTetrahedronMeshDesc &meshDesc, physx::PxOutputStream &stream)

Cooks a tetrahedron mesh.

The results are written to the stream.

To create a tetrahedron mesh object it is necessary to first ‘cook’ the mesh data into a form which allows the SDK to perform efficient collision detection.

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

See also

PxCookConvexMesh() PxPhysics.createTetrahedronMesh()

Parameters
  • params[in] The cooking parameters

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

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

Returns

true on success