Commit b6bfd323 authored by Janis Born's avatar Janis Born

rename variables for consistency

parent d924dd3c
...@@ -38,9 +38,9 @@ def calculate_face_normals(vertices, face_indices): ...@@ -38,9 +38,9 @@ def calculate_face_normals(vertices, face_indices):
v0 = v[f][:, 0, :] v0 = v[f][:, 0, :]
v1 = v[f][:, 1, :] v1 = v[f][:, 1, :]
v2 = v[f][:, 2, :] v2 = v[f][:, 2, :]
n = np.cross(v1 - v0, v2 - v0) fn = np.cross(v1 - v0, v2 - v0)
n /= np.linalg.norm(n, axis=1)[:, np.newaxis] fn /= np.linalg.norm(fn, axis=1)[:, np.newaxis]
return FaceAttribute(n) return FaceAttribute(fn)
def calculate_point_normals(vertices, face_indices): def calculate_point_normals(vertices, face_indices):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment