surface_indices#
- DataSetFilters.surface_indices(progress_bar=False)[source]#
Return the surface indices of a grid.
- Parameters:
- progress_barbool,
optional
Display a progress bar to indicate progress.
- progress_barbool,
- Returns:
numpy.ndarray
Indices of the surface points.
Examples
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, 2, 36, 27, 7, 8, 81, 1, 18, 4])