PxCookTriangleMesh
Defined in include/cooking/PxCooking.h
-
bool PxCookTriangleMesh(const physx::PxCookingParams ¶ms, const physx::PxTriangleMeshDesc &desc, physx::PxOutputStream &stream, physx::PxTriangleMeshCookingResult::Enum *condition = NULL)
Cooks a triangle mesh.
The results are written to the stream.
To create a triangle mesh object it is necessary to first ‘cook’ the mesh data into a form which allows the SDK to perform efficient collision detection.
PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.
See also
PxCookConvexMesh() PxPhysics.createTriangleMesh() PxTriangleMeshCookingResult::Enum
- Parameters
params – [in] The cooking parameters
desc – [in] The triangle mesh descriptor to read the mesh from.
stream – [in] User stream to output the cooked data.
condition – [out] Result from triangle mesh cooking.
- Returns
true on success