Computes normal vectors for each vertex of a triangular mesh.
The normal vector for each triangle with vertices (v0, v1, v2) is computed as the (normalized)
cross product of (v1 - v0, v2 - v1). The normal vector for each vertex is obtained by averaging
the normal vector of each of the triangles that contains it.
Computes normal vectors for each vertex of a triangular mesh.
The normal vector for each triangle with vertices (v0, v1, v2) is computed as the (normalized) cross product of (v1 - v0, v2 - v1). The normal vector for each vertex is obtained by averaging the normal vector of each of the triangles that contains it.