Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/mesh-laplacian
Computes coefficients of the Laplacian for a mesh
https://github.com/mikolalysenko/mesh-laplacian
Last synced: about 2 months ago
JSON representation
Computes coefficients of the Laplacian for a mesh
- Host: GitHub
- URL: https://github.com/mikolalysenko/mesh-laplacian
- Owner: mikolalysenko
- License: mit
- Created: 2015-11-15T16:39:35.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T16:53:35.000Z (about 9 years ago)
- Last Synced: 2024-10-20T14:26:50.594Z (2 months ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mesh-laplacian
Computes the Laplacian of a mesh.## Install
```
npm i mesh-laplacian
```## Example
```javascript
var bunny = require('bunny')
var lapList = require('mesh-laplacian')(bunny.cells, bunny.positions)
var lapMat = require('csr-matrix').fromList(lapList)
```## API
#### `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 mesh
* `positions` are the coordinates of the vertices of the mesh**Returns** A list of entries of the form `[vi,vj,w]` representing the entries
of the Laplaican matrix for the mesh.## Credits
(c) 2015 Mikola Lysenko. MIT License