-
Notifications
You must be signed in to change notification settings - Fork 532
Feature: Better Straight Wire Routing #501
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
Draft
jandrec27
wants to merge
9
commits into
SebLague:main
Choose a base branch
from
jandrec27:wire_autorouter
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Author
|
Cleaned up some strays that made it into the commit |
Simplified the implementation so that most of the logic is being done in WireInstance and GridHelper. Completely removed changes to ChipInteraction Controller Fixed some bugs with the initial implementation too The router now turns on and off with the forceStraightWires flag Also, the router is completely inactive when editing wires, which I believe is more practical Finally, the router works from the first pin it's placed, originally, it would only work once a point on the wire has been placed down
Fixed an alignment issue where, when a wire is finished placing, it get's snapped to the target pin, this would result in a slight misalignment of the second to last point on the wire. The fix now reroutes that point when finishing placement of a wire. Removed 90 degree routing mode for now, until I am able to implement it later. Want to look at curved wires first.
Fixed a bug with routing when last point was connected to a pin Releasing shift key returns wire to straight line mode
Re-implemented the curved wire bends from earlier versions Just used Sebastian's existing function to do so. Straight or Curved wires can be selected in the preferences menu
Author
Most of this commit revolves around setting up some things to change the direction in which wires attempt to terminate The idea is to make it possible to change between wires ending on a vertical or horizontal line when being routed
Contributor
|
Hey this looks absolutely awesome! Will you continue to work on it? or is it complete but still marked as a draft. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Still a work in progress, but the idea is better wiring routing when drawing straight wires, similar to what's found in programs like Kicad.
I intend to implement a 90° and 45° corner mode, but right now, only 45° mode is implemented.
I did notice that some code for rounded corners still exists, which would probably work better with 90° corners.
AutoRouter.Demo.mp4