Files
OpenNest/OpenNest.IO
ajandClaude Opus 5.5 f28fb5adb6 refactor: share the breakoff and tabbed-cutout code paths
The duplicate scan showed the CAD Converter's breakoff and tabbed-cutout
features, and several IO readers, as copy-and-paste pairs, so a fix to
one feature could miss its twin. Each pair now shares one helper with no
change in behavior:

- CAD Converter pick modes go through one toggle, turning the other modes
  off in the same order as before (the view's cursor follows the last one
  set); index guards, nearest-pick and keep-tabs tests are shared helpers.
- EntityView pick clicks, entity and tab-handle hit tests, and tab-handle
  and entry-mark drawing are shared by both features.
- IO: both polyline converters build one line chain; NestFormat's lenient
  converters share one TryNumber; NestReader reads breakoffs and tabbed
  cutouts through one loop with the same warnings.

The edit and tab-drag handlers stay separate: their types share no
interface, and the tab-drag guard deliberately differs. The Server's own
TryNumber copy stays, since Server may not reference IO. The WinForms
suite (1062) and IO.Tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:50:53 -05:00
..