find_cells_within_bounds#
- UnstructuredGrid.find_cells_within_bounds(bounds: Iterable[float]) numpy.ndarray #
Find the index of cells in this mesh within bounds.
- Parameters
- Returns
numpy.ndarray
Index or indices of the cell in this mesh that are closest to the given point.
See also
Examples
>>> import pyvista >>> mesh = pyvista.Cube() >>> index = mesh.find_cells_within_bounds([-2.0, 2.0, -2.0, 2.0, -2.0, 2.0])