discretize.TreeMesh.get_containing_cells#
- TreeMesh.get_containing_cells(self, points)#
Return the cells containing the given points.
- Parameters:
- points(
dim
)or
(n_point
,dim
) array_like The locations to query for the containing cells
- points(
- Returns:
int
or
(n_point
)numpy.ndarray
of
int
The indexes of cells containing each point.