PxCreateTetrahedronMesh

Defined in include/cooking/PxCooking.h

physx::PxTetrahedronMesh *PxCreateTetrahedronMesh(const physx::PxCookingParams &params, const physx::PxTetrahedronMeshDesc &meshDesc, physx::PxInsertionCallback &insertionCallback)

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

See also

PxCookTetrahedronMesh() PxInsertionCallback

Note

This method does the same as PxCookTetrahedronMesh, 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

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

  • insertionCallback[in] The insertion interface from PxPhysics.

Returns

PxTetrahedronMesh pointer on success.