simpeg.utils.surface2inds#

simpeg.utils.surface2inds(vrtx, trgl, mesh, boundaries=True, internal=True)[source]#

Takes a triangulated surface and determine which mesh cells it intersects.

Parameters:
vrtx(n_nodes, 3) numpy.ndarray of float

The location of the vertices of the triangles

trgl(n_triang, 3) numpy.ndarray of int

Each row describes the 3 indices into the vrtx array that make up a triangle’s vertices.

meshdiscretize.TensorMesh
boundariesbool, optional
internalbool, optional
Returns:
numpy.ndarray of bool

Notes

Requires vtk.