Skip to content

Add sliding anchor along adjacent segments in path tool #2682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

4adex
Copy link
Collaborator

@4adex 4adex commented Jun 1, 2025

Part of #1870

‼️CtrlShift (updated since video was recorded which indicated this would use Alt) slides the anchor along its adjacent segment(s) while adjusting its handle(s) to best approximate the initial curvature. Since only the two handles may vary in length >= 0 and it must pass through the sliding point's starting position, there's only one dimension of freedom and a simple Newton's method optimization for error based on Hausdorff or Frechet distance should be fine, as far as the algorithm goes. (If pressed before the drag begins, it shouldn't break Shift-clicking points to add to the selection.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant