irtk.io.read_mesh

irtk.io.read_mesh(mesh_path: str) Tuple[ndarray, ndarray, ndarray, ndarray]

Reads a mesh from a file.

Parameters:

mesh_path – The path to the mesh file.

Returns:

A tuple containing vertices, faces, UV coordinates, and face UV coordinates. If the file is not an .obj or doesn’t contain UV coordinates, the UV coordinates will be set to 0 for all vertices, and face UV indices will match face indices. Currently, UV coordinates can only be read from .obj files.