def _read_head_shape(fname):
 with _bti_open(fname, 'rb') as fid:
  fid.seek(BTI.FILE_HS_N_DIGPOINTS)
  _n_dig_points = read_int32(fid)
  idx_points = read_double_matrix(fid, BTI.DATA_N_IDX_POINTS, 3)
  dig_points = read_double_matrix(fid, _n_dig_points, 3)
 return (idx_points, dig_points)

def _read_head_shape ( fname ) : with _bti_open ( fname , 'rb' ) as fid : fid . seek ( BTI . FILE_HS_N_DIGPOINTS ) _n_dig_points = read_int32 ( fid ) idx_points = read_double_matrix ( fid , BTI . DATA_N_IDX_POINTS , 3 ) dig_points = read_double_matrix ( fid , _n_dig_points , 3 ) return ( idx_points , dig_points )
read the head shape .