Triangle64.compute_normals

giant.ray_tracer.shapes.triangle:

Triangle64.compute_normals(self)

This method computes the unit normal vectors for each facet.

The normal vector is the unit vector in the direction of the cross product of the side vector going from vertex 0 to vertex 1 with the side vector going from vertex 0 to vertex 2. The normals are computed in parallel and are stored in the normals array.