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.ndarrayoffloat
- The location of the vertices of the triangles 
- trgl(n_triang, 3)numpy.ndarrayofint
- Each row describes the 3 indices into the vrtx array that make up a triangle’s vertices. 
- meshdiscretize.TensorMesh
- boundariesbool, optional
- internalbool, optional
 
- vrtx(
- Returns:
 - Notes - Requires vtk.