The exit point should be the corner farthest from the origin so the perimeter (cut last) ends near the machine home. The mapping was backwards — Q1 (origin bottom-left) was returning (0,0) instead of (w,l). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>