Computing Normals for "Smooth by Angle" Shading Like Blender

from blog cprimozic.net Blog, | ↗ original
Background As part of some other work I was doing that involved programmatically manipulating 3D meshes, I encountered the need to compute normals for them from scratch. Usually this isn't necessary since applications like Blender handle doing this automatically. But in my case, I was doing these transformations dynamically and in the web...