Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/taubin-smooth
Taubin's mesh smoothing algorithm implemented in JavaScript
https://github.com/mikolalysenko/taubin-smooth
Last synced: 5 days ago
JSON representation
Taubin's mesh smoothing algorithm implemented in JavaScript
- Host: GitHub
- URL: https://github.com/mikolalysenko/taubin-smooth
- Owner: mikolalysenko
- Created: 2017-05-12T21:40:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T23:49:18.000Z (over 7 years ago)
- Last Synced: 2024-12-15T12:02:41.225Z (10 days ago)
- Language: HTML
- Homepage: https://mikolalysenko.github.io/taubin-smooth/index.html
- Size: 655 KB
- Stars: 37
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# taubin-smooth
A pure JavaScript implementation of Taubin's mesh smoothing algorithm.## [DEMO](https://mikolalysenko.github.io/taubin-smooth/index.html)
# Install
```
npm i taubin-smooth
```# API
#### `require('taubin-smooth')(cells, positions[, options])`
Takes a mesh as input, returns the smoothed vertices as output* `cells` are the cells of the mesh
* `positions` are the coordinates of the vertices
* `options` is an optional object containing any of the following configuration parameters:
+ `iters` the number of smoothing iters to run (default `10`)
+ `passBand` a scalar between `0` and `1` determining the cutoff frequency. (default `0.1`)# Credits
Development supported by [Standard Cyborg](http://www.standardcyborg.com/)
(c) 2017 Mikola Lysenko. MIT License