@verbose
def read_surface(fname, read_metadata=False, return_dict=False, verbose=None):
 ret = _get_read_geometry()(fname, read_metadata=read_metadata)
 if return_dict:
  ret += (dict(rr=ret[0], tris=ret[1], ntri=len(ret[1]), use_tris=ret[1], np=len(ret[0])),)
 return ret

@ verbose def read_surface ( fname , read_metadata = False , return_dict = False , verbose = None ) : ret = _get_read_geometry ( ) ( fname , read_metadata = read_metadata ) if return_dict : ret += ( dict ( rr = ret [ 0 ] , tris = ret [ 1 ] , ntri = len ( ret [ 1 ] ) , use_tris = ret [ 1 ] , np = len ( ret [ 0 ] ) ) , ) return ret
load a freesurfer surface mesh in triangular format .