I have several objects in Three.js JSON Model Format . It defines vertex positions, and faces - sometimes triangles, sometimes squares, sometimes with material indices, and sometimes not.
However, none of these files have vertex normals.
I need an algorithm that can calculate such normals over a set of grid faces. I would like to indicate the angular limit beyond which the bend is displayed (normals are not separated by adjacent faces at the vertex.)
Before encoding this, I wondered: does this exist in three or more than three .js?
source share