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
Board Editor: Simplify Trace command #737
base: master
Are you sure you want to change the base?
Conversation
22c9f31
to
7ed178a
Compare
Are you actually waiting for my comments on this PR, or is it work in progress on your side? So far I didn't really review it because it's still a draft 🙈 This will for sure conflict with #760, but hopefully it shouldn't be too hard to resolve since it mainly "only" adds an additional tool (not modifying existing tools) 🙂 |
It currently a work in progress on my side. If you've got time, I'd be happy about some initial comments but right now I've got enough stuff to work on. |
7ed178a
to
181180a
Compare
- New Tool class created and added to GUI - Remove duplicate NetLines with the same start and end points - Merge NetPoints at the same location - Connect Vias with the NetPoints and NetLines at the same location - Connect NetPoints with NetLines at the same location - Plan out other simplifications - Simplify NetLines forming a straight line - new CmdBoardCombineAnchors undo command group, that combines anchors of the same NetSegment. Based on combineAnchors in BoardEditorState_DrawTrace - Add default nullptr when searching for items at location - Add myself to AUTHORS.md
181180a
to
e5d9a62
Compare
I quickly tested this feature. The simplification seems to work fine so far! 👍 However, I have some thoughts:
|
When drawing a straight trace, you might want to place an anchor point at a specific location, so that you can snap to that location from another trace. |
Hmm but you can also connect a trace to another trace without any anchor point 🤔 |
Thank you very much for the feedback!
|
Yes, but then it snaps to the grid, not to the existing anchor point. If you draw the second trace with a different grid setting than the first one, having an anchor point for snapping might be desirable. Nevertheless, I'm not sure how important that really is... It can be worked around by changing the grid again. |
A command that simplifies all the NetSegments of a NetSignal by removing duplicate items and combining disconnected parts of a NetSegment.
Features
Summary
Principle
During the operation, duplicate NetLines and NetPoints are combined multiple times, since some of the more complex simplifications can create these duplicate items.
TODO