taubin-smooth
v1.0.1
Published
Taubin's Laplacian mesh smoothing algorithm
Downloads
2
Maintainers
Readme
taubin-smooth
A pure JavaScript implementation of Taubin's mesh smoothing algorithm.
DEMO
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 meshpositions
are the coordinates of the verticesoptions
is an optional object containing any of the following configuration parameters:iters
the number of smoothing iters to run (default10
)passBand
a scalar between0
and1
determining the cutoff frequency. (default0.1
)
Credits
Development supported by Standard Cyborg
(c) 2017 Mikola Lysenko. MIT License