bfieldtools.utils.inner2vert

bfieldtools.utils.inner2vert(mesh, inner_vertices, holes)

Linear mapping of the inner (free) weights in the stream function discretization to weights in all vertices

Parameters:

mesh: Trimesh object inner_vertices: list of indices of the inner vertices of the mesh holes: list of indices for holes in the mesh

Returns:

NxM sparse array, where N==mesh.vertices.shape[0] and M == len(inner_vertices) + len(holes)