PxCreateTriangleMesh#
Defined in include/cooking/PxCooking.h
- inline physx::PxTriangleMesh *PxCreateTriangleMesh(
- const physx::PxCookingParams ¶ms,
- const physx::PxTriangleMeshDesc &desc,
Cooks and creates a triangle mesh without going through a stream.
Convenience function for standalone objects.
See also
PxCookTriangleMesh() PxPhysics.createTriangleMesh() PxInsertionCallback
Note
This method does the same as cookTriangleMesh, 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.
- Parameters:
params – [in] The cooking parameters
desc – [in] The triangle mesh descriptor to read the mesh from.
- Returns:
PxTriangleMesh pointer on success.