def selected(script, face=True, vert=True):
if face and vert:<EOL><INDENT>filter_xml = '<STR_LIT>'<EOL><DEDENT>elif face and not vert:<EOL><INDENT>filter_xml = '<STR_LIT>'<EOL><DEDENT>elif not face and vert:<EOL><INDENT>filter_xml = '<STR_LIT>'<EOL><DEDENT>util.write_filter(script, filter_xml)<EOL>return None<EOL>
Delete selected vertices and/or faces

    Note: if the mesh has no faces (e.g. a point cloud) you must
    set face=False, or the vertices will not be deleted

    Args:
        script: the FilterScript object or script filename to write
            the filter to.
        face (bool): if True the selected faces will be deleted. If vert
            is also True, then all the vertices surrounded by those faces will
            also be deleted. Note that if no faces are selected (only vertices)
            then this filter will not do anything. For example, if you want to
            delete a point cloud selection, you must set this to False.
        vert (bool): if True the selected vertices will be deleted.

    Layer stack:
        No impacts

    MeshLab versions:
        2016.12
        1.3.4BETA