simpeg.utils.model_builder.get_indices_polygon#

simpeg.utils.model_builder.get_indices_polygon(mesh, pts)[source]#

Get indices for cells whose centers lie within the convex hull of a set of points.

Parameters:
meshdiscretize.base.BaseMesh

Discretize mesh

pts(n, dim) numpy.ndarray

Set of points defining the convex hull

Returns:
tuple of int

Indices of the cells whose center lies within convex hull

Galleries and Tutorials using simpeg.utils.model_builder.get_indices_polygon#

Tensor Meshes

Tensor Meshes

Tree Meshes

Tree Meshes