xugrid.Ugrid2d.locate_bounding_box#
- Ugrid2d.locate_bounding_box(xmin: float, ymin: float, xmax: float, ymax: float) ndarray [source]#
Find which faces are located in the bounding box. The centroids of the faces are used.
- Parameters:
xmin (float,) –
ymin (float,) –
xmax (float,) –
ymax (float) –
- Returns:
face_index
- Return type:
ndarray of bools with shape
(n_face,)