pyFM.mesh.file_utils.read_tri

pyFM.mesh.file_utils.read_tri(filepath, from_matlab=True)

Read a .tri file from TOSCA dataset

Parameters:
  • filepath (str) – path to file

  • from_matlab (bool, optional) – If True, file indexing starts at 1

Returns:

faces – (m,3) array of vertices indices to define faces

Return type:

np.ndarray