Today was not really easy.
My strategy:
=> More informations about this toot | More toots from thinkb4coding@mastodon.social
@thinkb4coding
I tried a few approaches, in the end I walked the cells recursively and stored oriented segments for each side not adjacent to another of the same plot, grouping the segments by region.
After walking the whole grid, it's just a matter of merging the contiguous segments for each region. The hard part for me was figuring out the special case with a cross-like junction.
Still a pretty difficult one compared to the previous ones this year.
=> More informations about this toot | More toots from jadam_fr@hachyderm.io This content has been proxied by September (ba2dc).Proxy Information
text/gemini