def _get_ico_map(fro, to):
 (nearest, dists) = _compute_nearest(fro['rr'], to['rr'], return_dists=True)
 n_bads = (dists > 0.005).sum()
 if (n_bads > 0):
  raise RuntimeError(('No matching vertex for %d destination vertices' % n_bads))
 return nearest

def _get_ico_map ( fro , to ) : ( nearest , dists ) = _compute_nearest ( fro [ 'rr' ] , to [ 'rr' ] , return_dists = True ) n_bads = ( dists > 0.005 ) . sum ( ) if ( n_bads > 0 ) : raise RuntimeError ( ( 'No matching vertex for %d destination vertices' % n_bads ) ) return nearest
helper to get a mapping between ico surfaces .