This is a version of rounded-cell-painter running on static data (no painting) sent in by a reader.
There are some issues with standalone star systems, star systems with very large territory, and star systems on the boundary of the map. I side-stepped the boundary issues in the original project by adding extra polygons and then clipping them so that nobody would see that there are issues.
Source: rounded-cell-star-systems.js