Skip to content

mikolalysenko/taubin-smooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

taubin-smooth

A pure JavaScript implementation of Taubin's mesh smoothing algorithm.

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

(c) 2017 Mikola Lysenko. MIT License

About

Taubin's mesh smoothing algorithm implemented in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published