bfieldtools.utils.vert2inner

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

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

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:

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