def METHOD_NAME(mesh, lst, uv):
    mesh.addPolygon(float_point_array(lst), False)
    i = mesh.numPolygons() - 1
    a = OpenMaya.MIntArray()
    mesh.getPolygonVertices(i, a)
    for j in range(3):
        mesh.setUV(i * 3 + j, UVS[uv[j]][0], UVS[uv[j]][1])
    for j in range(3):
        mesh.assignUV(i, j, i * 3 + j)