def METHOD_NAME(pts, polys):
    from tvtk.api import tvtk
    pd = tvtk.PolyData(points=pts, polys=polys)
    try:
        dec = tvtk.DecimatePro()
        dec.set_input_data(pd)
    except Exception:
        dec = tvtk.DecimatePro(input=pd)  # VTK version < 6
    dec.set(preserve_topology=True, splitting=False, boundary_vertex_deletion=False, target_reduction=1.0)
    dec.update()
    dpts = dec.output.points.to_array()
    dpolys = dec.output.polys.to_array().reshape(-1, 4)[:,1:]
    return dpts, dpolys