Compute mesh normals using angle weights
MIT License
Computes vertex normals for a mesh using angle weights. This is slower, but produces results which are more robust to the mesh subdivision.
Angle normals
npm i angle-normals
var bunny = require('bunny')
var normals = require('angle-normals')(bunny.cells, bunny.positions)
console.log(normals)
require('angle-normals')(cells, positions)
Computes vertex normals from for a mesh.
cells
are the cells of the meshpositions
are the positions of the mesh's verticesReturns An array of normals
(c) 2015 Mikola Lysenko. MIT License