PxCreateConvexMesh

Defined in include/cooking/PxCooking.h

physx::PxConvexMesh *PxCreateConvexMesh(const physx::PxCookingParams &params, const physx::PxConvexMeshDesc &desc, physx::PxInsertionCallback &insertionCallback, physx::PxConvexMeshCookingResult::Enum *condition = NULL)

Cooks and creates a convex mesh without going through a stream.

See also

PxCookConvexMesh() PxInsertionCallback

Note

This method does the same as PxCookConvexMesh, 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 convex mesh descriptor to read the mesh from.

  • insertionCallback[in] The insertion interface from PxPhysics.

  • condition[out] Result from convex mesh cooking.

Returns

PxConvexMesh pointer on success