mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 22:33:08 +00:00
The crossing search splits curves into pieces until each lies within 0.0001 pt of its chord, and takes the place where two chords cross. Where a line meets an arc at under a degree, that place sat up to 0.025 pt along the arc from the real crossing, so Trim at Crossings, its hover and Add Points at Crossings cut there. Each place found is now moved onto both curves with Newton's method on a(s) = b(t). The move is kept only when it stays within both segments, ends closer than 1e-9 pt, and moves no farther than a piece bent by 0.0001 pt can shift a crossing at that angle; otherwise the place stays as it was.