Files
sor/Server
dingoandClaude Sonnet 4.6 d00d7150bb Replace geometric NPolyInside test with walk-and-flood N-gon algorithm
ApplyHexConfig now:
1. Picks the closest hex direction (axial, pointy-top) to each of the N
   evenly-spaced target angles (360°/N · k).
2. Walks sideLength steps per side from pre-computed centred corners.
3. Bridges any gap between the end of one side and the start of the next
   by greedily stepping toward the target corner.
4. Flood-fills the interior from (0,0) stopping at the border ring.
5. Marks only the out-of-shape in-bounds tiles as absent; present tiles
   stay as default (no _tiles entry needed).

N=3 (triangle) and N=6 (hexagon) produce exact shapes with no bridging;
other N values approximate with minimal bridging tiles.
Zone generation updated to use the actual axial corner positions instead
of Cartesian vertex approximations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 16:47:49 -04:00
..