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.
- mesh
discretize.TensorMesh
- boundariesbool,
optional
- internalbool,
optional
- vrtx(
- Returns:
Notes
Requires vtk.