void InitializeNeighbours | ( | bool | closed | ) |
Rebuilds and updates the neighbour IDs for each receptor.
Every receptor gets exactly two neighbours: the receptor having the preceding ID as first neighbour and the receptor having the succeeding ID as second neighbour.
closed | false : the bounds neighbour IDs get a -1 at the outer border, true : the bounds neighbour IDs point cyclically to the first receptor respectively to the last receptor forming a closed sensor shape. |