TensorFlow 2.0 RC is available Learn more

tfg.geometry.representation.mesh.normals.gather_faces

Gather corresponding vertices for each face.

tfg.geometry.representation.mesh.normals.gather_faces(
    vertices,
    indices,
    name=None
)

Defined in geometry/representation/mesh/normals.py.

Note:

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

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".

Returns:

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

Raises:

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