Given an array of triangles' vertices, return a `Float32Array` of their normal vectors.
Want to see pretty graphs? Log in now!
npm install face-normals
|2||downloads in the last day|
|3||downloads in the last week|
|8||downloads in the last month|
|Last Published By|
|Version||0.0.0 last updated 5 months ago|
|Keywords||3D, mesh, normal, vectors, geometry, generation|
Given an array of triangles' vertices, return a
Float32Array of their normal
vectors. Helpful for quickly calculating the the normals of a mesh (assuming
it's made up of triangles).
Takes an array-like list of
triangles. Each vertex should take up 3 elements,
combined into groups of 3 to make each triangle. Optionally, you can pass in
output object to set the values directly. If not, a
Float32Array will be created for you - either way, the new/updated array will