Applies one iteration of Loop's algorithm to a triangular mesh
MIT License
Applies an iteration of Loop's algorithm to a triangulated mesh.
var bunny = require('bunny')
var loopSubdiv = require('loop-subdivide')
var smoothBunny = loopSubdiv(bunny.cells, bunny.positions)
var result = require('loop-subdivide')(cells, positions)
Applies one iteration of Loop subdivision to the mesh
cells
are the cells of the meshpositions
are the locations of the vertices of the meshReturns A new subdivide mesh
(c) 2015 Mikola Lysenko. MIT License