mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-25 10:17:02 -06:00
A drag tested points spaced by a step that grew with the selection (at least 0.25 pt), and the tool's highlight tested points 2 screen pixels apart. A region narrower than the step, such as a thin overlap, fell between samples: it kept its piece of each source, the merge left strips behind, or the drag failed with "no region under the pointer" while the highlight showed the region. Zoomed out, the highlight could miss a region the merge then took. The drag now finds where each segment crosses a region outline and tests the middle of every stretch between crossings, so every region it crosses is picked. The tool's highlight and shapeBuilder.merge use the same picking, and Shaper's scribble picks the faces it crosses the same way. In erase mode the line pieces and edges are still found within the tolerance, and a segment that crosses one also tests the crossing point. Shaper's scribble found the strokes to erase at points at least 0.5 pt apart, so with a tolerance below 1 pt it could pass over a stroke without erasing it. It now also tests where the scribble crosses each stroke and points tolerance / 2 apart.