kaolin.io.off

API

kaolin.io.off.import_mesh(path, with_face_colors=False)

Load data from an off file as a single mesh.

Parameters
  • path (str) – path to the obj file (with extension).

  • with_face_colors (bool) – if True, load face colors. Default: False.

Returns:

nametuple of:
  • vertices (torch.FloatTensor): of shape (num_vertices, 3)

  • faces (torch.LongTensor): of shape (num_faces, face_size)

  • face_colors (torch.LongTensor): in the range [0, 255], of shape (num_faces, 3).

class kaolin.io.off.return_type(vertices, faces, face_colors)

Bases: tuple

property face_colors

Alias for field number 2

property faces

Alias for field number 1

property vertices

Alias for field number 0