# tfg.geometry.representation.mesh.normals.gather_faces

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/geometry/representation/mesh/normals.py#L32-L81) |

Gather corresponding vertices for each face.

    tfg.geometry.representation.mesh.normals.gather_faces(
        vertices: type_alias.TensorLike,
        indices: type_alias.TensorLike,
        name: str = 'normals_gather_faces'
    ) -> type_alias.TensorLike

<br />

<br />

<br />

| ## Note ||
|---|---|
| In the following, A1 to An are optional batch dimensions. ||

<br />

<br />

<br />

<br />

| ## Args ||
|---|---|
| `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". |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of shape `[A1, ..., An, F, M, D]` containing the vertices of each face. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | If the shape of `vertices` or `indices` is not supported. |

<br />