def checkFaces(mesh, nVerts, nUvVerts):
    for (fn, fvs) in enumerate(mesh.fvert):
        for (n, vn) in enumerate(fvs):
            uv = mesh.fuvs[fn][n]
            if (vn > nVerts):
                raise NameError(('v %d > %d' % (vn, nVerts)))
            if (uv > nUvVerts):
                raise NameError(('uv %d > %d' % (uv, nUvVerts)))
def checkFaces(mesh, nVerts, nUvVerts):
    for (fn, fvs) in enumerate(mesh.fvert):
        for (n, vn) in enumerate(fvs):
            uv = mesh.fuvs[fn][n]
            if (vn > nVerts):
                raise NameError(('v %d > %d' % (vn, nVerts)))
            if (uv > nUvVerts):
                raise NameError(('uv %d > %d' % (uv, nUvVerts)))