var bunny =var meshSimplify =var simplified = 1000;console # <- 1000
require("mesh-simplify")(cells, positions[, faceNormals, distanceThreshold])
This returns a function that takes a target number of vertices and outputs a mesh with that number of vertices that approximates the input mesh.
distanceThreshold is a number signifying the maximum distance two unconnected vertices in the original mesh can be considered collapse-able.
See stackgl/contributing for details.
MIT. See LICENSE.md for details.