graphics - Calculating Vertex Normals of a mesh -


this question has answer here:

i have legitimately done every research possible this, , says calculate surface normals of each adjacent face. calculating surface normals easy, how heck find adjacent faces each vertex? kind of storage use? missing something? why easy everyone.

any guidance appreciated.

but how heck find adjacent faces each vertex?

think otherway round: iterate on faces , add normal of vertex. once processed faces, normalize vertex normal unit length. described in detail here

calculating normals in triangle mesh

if want find faces vertex, naive approach perform (linear) search vertex in list of faces. better approach maintain adjancy list.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -