discretize.TensorMesh.is_inside#

TensorMesh.is_inside(pts, location_type='nodes', **kwargs)[source]#

Determine which points lie within the mesh.

For an arbitrary set of points, is_indside returns a boolean array identifying which points lie within the mesh.

Parameters:
pts(n_pts, dim) numpy.ndarray

Locations of input points. Must have same dimension as the mesh.

location_typestr, optional

Use N to determine points lying within the cluster of mesh nodes. Use CC to determine points lying within the cluster of mesh cell centers.

Returns:
(n_pts) numpy.ndarray of bool

Boolean array identifying points which lie within the mesh