tfg.geometry.representation.mesh.normals.gather_faces

Gather corresponding vertices for each face.

In the following, A1 to An are optional batch dimensions.

vertices A tensor of shape [A1, ..., An, V, D], where V is the number of vertices and D the dimensionality of each vertex. The rank of this tensor should be at least 2.
indices A tensor of shape [A1, ..., An, F, M], where F is the number of faces, and M is the number of vertices per face. The rank of this tensor should be at least 2.
name A name for this op. Defaults to "normals_gather_faces".

A tensor of shape [A1, ..., An, F, M, D] containing the vertices of each face.

ValueError If the shape of vertices or indices is not supported.