submap mirror transformation, applicative style

This commit is contained in:
Mészáros Gergely 2022-04-20 12:24:19 +02:00
parent 38e708c0ed
commit d0b7c3aa9a
3 changed files with 40 additions and 17 deletions

View file

@ -1413,6 +1413,7 @@ function reMarkFeatures() {
cells.harbor[i] = water.length;
};
if (!cells.i.length) return; // no cells -> there is nothing to do
for (let i = 1, queue = [0]; queue[0] !== -1; i++) {
const start = queue[0]; // first cell
cells.f[start] = i; // assign feature number