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