irtk.io.write_mesh

irtk.io.write_mesh(mesh_path: str, v: ndarray, f: ndarray, uv: ndarray | None = None, fuv: ndarray | None = None) None

Writes a mesh to a file.

Parameters:
  • mesh_path – The path to the mesh file.

  • v – The vertices of the mesh, shape (num_v, 3).

  • f – The faces of the mesh, shape (num_f, 3).

  • uv – The UV coordinates of the mesh, shape (num_uv, 2). If not present, it will not be written.

  • fuv – The face UV coordinates of the mesh, shape (num_f, 3). If not present, it will not be written.