forked from 1b-agent/fieldcraft-upstream
A smooth loop (straight sides running tangent into arcs, as a slot or a rounded pocket) is meshed as a disk. Its middle block was a square halfway to the loop's quarter points, which on the crank's 6:1 pocket floor squashed elements to a scaled Jacobian of 0.16. The block is now a rectangle on the region's principal axes, inset by the same distance all round (the old square on a circle), its corners paired with the loop nodes nearest their diagonals, its sides spaced as the nodes they pair with, and the O-grid is smoothed (untangled first) before the validity check. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo