pyFM.mesh.file_utils.read_off¶
- pyFM.mesh.file_utils.read_off(filepath, read_colors=False)¶
read a standard .off file
Read a .off file containing vertex and face information, and possibly face colors.
- Parameters:
- Returns:
vertices (np.ndarray) – (n,3) array of vertices coordinates
faces (np.ndarray) – (m,3) array of indices of face vertices
colors (np.ndarray, optional) – (m,3) Only if read_colors is True. Array of colors for each face. None if not found.