hippomaps.utils.laplace_solver
- hippomaps.utils.laplace_solver(faces, init, maxiters=10000.0, conv=1e-06, cores=8)
Solves the Laplace equation along vertices of a surface.
- Parameters:
faces (Faces of a surface mesh.) –
init (Initial vertex-wise values. Source(s) should have a value of 0, Sink(s) should have a value of 1. NaN values will be masked. Time required scales with the number of unmasked vertices.) –
maxiters (int, optional) – Maximum iterations to run. Default is 1e4.
conv (float, optional) – Convergence criterion. Default is 1e-6.
cores (int, optional) – Number of CPU cores to use (per iteration). Default is 8.
- Returns:
LP (Laplace solution (vertex-wise).)
change (sum of absolute changes per iteration (should converge towards 0))