add_ids_algorithm

add_ids_algorithm#

add_ids_algorithm(
inp: _AlgorithmInput,
*,
point_ids: bool = True,
cell_ids: bool = True,
) → AddIDsAlgorithm[source]#

Add a filter that adds point and/or cell IDs.

Parameters:
inppyvista.DataSet | vtkAlgorithm | vtkAlgorithmOutput

The input data to which the IDs will be added.

point_idsbool, default: True

If True, point IDs will be added to the input data.

cell_idsbool, default: True

If True, cell IDs will be added to the input data.

Returns:
AddIDsAlgorithm

AddIDsAlgorithm filter.