GSoC 2021: Knife Tool Improvements: Weekly Reports

Week of July 5th - 11th

This week I spent the majority of my time finishing up undo functionality. I had a lot of trouble with various bugs that existed in last week’s implementation as well as tackling the reversing of edge splitting. I am happy to say I have since committed a nearly fully working version of undo.

Notes

  • Implemented undo functionality for the knife tool
    • Pressing “Ctrl-Z” will delete the most recent segment of the cut
    • If the cut is still being drawn, the starting point for the next cut is adjusted accordingly
    • Currently visible distance and angle measurements are broken after an undo
      • I intend to rewrite some parts of the code for the visible measurements feature and so am holding off until next week to fix this
  • Midpoint snapping has been moved from ‘CTRL’ to ‘TAB’ in the modal key map
    • This is due it not being compatible with “Ctrl-Z” for undo

Questions

I have a few questions I would like to get community feedback on. Please share your responses in the feedback thread.

  1. Is “TAB” okay for midpoint snapping modal key? If necessary I can spend more time attempting to make both “CTRL” for midpoint snapping and “CTRL-Z” for undo work together. Or maybe someone can suggest a better key than “TAB”?

  2. As shown in last week’s report, when drag cutting with the knife tool, undo will only remove the last segment of the drag cut. Should this be changed to undo an entire drag cut in one undo operation?

Media

Here are some gifs showing undo working in various different ways:
week5_1

week5_2

week5_3

reply4

32 Likes