PxCreateTetrahedronMesh

Defined in include/cooking/PxCooking.h

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

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

Convenience function for standalone objects.

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.

Parameters
  • params[in] The cooking parameters

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

Returns

PxTetrahedronMesh pointer on success.