DataSetFilters.surface_indices

DataSetFilters.surface_indices#

DataSetFilters.surface_indices(
*,
progress_bar: bool = False,
) → NDArray[np.signedinteger][source]#

Return the surface indices of a grid.

Changed in version 0.47: The underlying algorithm used to compute surface indices has changed. vtkGeometryFilter is now used, previously it was vtkDataSetSurfaceFilter.

Parameters:
progress_barbool, default: False

Display a progress bar to indicate progress.

Returns:
numpy.ndarray

Indices of the surface points.

Examples#

Download Python source code | Download Jupyter notebook

Return the first 10 surface indices of an UnstructuredGrid.

>>> from pyvista import examples
>>> grid = examples.load_hexbeam()
>>> ind = grid.surface_indices()
>>> ind[:10]
pyvista_ndarray([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]...)