Convert mesh to unsigned integers