Code assigning normals to nodes of triangulation corrected to use correct index of the node and avoid array out-of-bound errors.