PxCreateTriangleMesh#
Defined in include/cooking/PxCooking.h
- physx::PxTriangleMesh *PxCreateTriangleMesh(
- const physx::PxCookingParams ¶ms,
- const physx::PxTriangleMeshDesc &desc,
- physx::PxInsertionCallback &insertionCallback,
- physx::PxTriangleMeshCookingResult::Enum *condition = NULL,
Cooks and creates a triangle mesh without going through a stream.
See also
PxCookTriangleMesh() PxPhysics.createTriangleMesh() PxInsertionCallback
Note
This method does the same as PxCookTriangleMesh, 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
desc – [in] The triangle mesh descriptor to read the mesh from.
insertionCallback – [in] The insertion interface from PxPhysics.
condition – [out] Result from triangle mesh cooking.
- Returns:
PxTriangleMesh pointer on success.