Computes coefficients of the Laplacian for a mesh
MIT License
Computes the Laplacian of a mesh.
npm i mesh-laplacian
var bunny = require('bunny')
var lapList = require('mesh-laplacian')(bunny.cells, bunny.positions)
var lapMat = require('csr-matrix').fromList(lapList)
var mat = require('mesh-laplacian')(cells, positions)
Constructs the mesh Laplacian for a given surface mesh using barycentric cotangent weights.
cells
are the faces of the meshpositions
are the coordinates of the vertices of the meshReturns A list of entries of the form [vi,vj,w]
representing the entries
of the Laplaican matrix for the mesh.
(c) 2015 Mikola Lysenko. MIT License