discretize.SimplexMesh.point2index#

SimplexMesh.point2index(locs)[source]#

Find cells that contain the given points.

Returns an array of index values of the cells that contain the given points

Parameters:
locs: (N, dim) array_like

points to search for the location of

Returns:
(N) array_like of int

Cell indices that contain the points