def compute_normal(vertices, faces):
norm = np.zeros(vertices.shape, dtype=vertices.dtype)
tris = vertices[faces]
## skip the rest of the code ##
where vertices is an np.ndarray of shape (A,3), faces is an np.ndarray of shape (B,3), andtris turns to be of shape (B,3,3). (by the way, B>A)
What is tris = vertices[faces] actually doing?