pyvista.DataSet.find_cells_within_bounds#
- DataSet.find_cells_within_bounds(bounds: BoundsTuple) NumpyArray[int] [ソース]#
このメッシュの中で,境界線上にあるセルのインデックスを求めます.
- パラメータ:
- 戻り値:
numpy.ndarray
指定した点に最も近い,このメッシュ内のセルのインデックスです.
参考
例
>>> import pyvista as pv >>> mesh = pv.Cube() >>> index = mesh.find_cells_within_bounds([-2.0, 2.0, -2.0, 2.0, -2.0, 2.0])