mirror of
https://github.com/storytold/cadcraft.git
synced 2026-12-01 18:25:32 -06:00
Tab at a point prompt offered only the closest snap of each running mode, so of several line ends under the aperture only one was reachable. The candidate gathering is split out of osnap_in_with_prims (collect_in) and the new snap::osnap_all keeps every candidate: each mode's points of every object nearby, the intersections, perpendicular and tangent points from the base, the deferred snap and the nearest point of each object, in layout viewports too, ranked with the click snap's score (Nearest and deferred last), without repeats and capped at 256. finish and finish_all share base_snaps and nearest_points. pointmod::snap_candidates puts the click snap first, then osnap_all's list. Tests: every endpoint under the aperture is offered; 1,200 endpoints and their crossings give at most 257 finite, unrepeated candidates; NaN or infinite cursors, base points and apertures, zero or negative apertures, OSMODE 0 and the F3 bit give none; with the real pointer Tab visits three line ends and comes back round. gaps: U4 removed. ui-parity: Tab row. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>