def find_deforming_mesh_geometry(polygons, names):
    """
    Given a list of polygons and a name or list of names,
    returns a list of polygons with names matching the list
    """

    if isinstance(names, str):
        names = [names]

    selected_polygons = []
    for name in names:
        for polygon in polygons:
            if polygon.get_feature().get_name() == name:
                selected_polygons.append(polygon.get_resolved_geometry())

    return selected_polygons