-
Notifications
You must be signed in to change notification settings - Fork 22
feat: use collision-free base elbow paths directly #69
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
base: main
Are you sure you want to change the base?
Conversation
- Add early collision detection for base elbow paths in SchematicTraceSingleLineSolver2 - Skip complex pathfinding when no collisions exist with the default calculateElbow path - Improves performance and creates cleaner trace routing for collision-free cases - Maintains backward compatibility with existing pathfinding for collision cases - Add test to verify collision-free optimization works correctly Resolves tscircuit#68
@RaghavArora14 is attempting to deploy a commit to the tscircuit Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add snapshots
- Added comprehensive test cases demonstrating bounty tscircuit#68 implementation - SVG snapshots show collision-free traces being used directly without pathfinding - Tests showcase long diagonal traces with obstacles that don't interfere - Visual proof that collision-free base elbow paths are used immediately This demonstrates the optimization where traces that don't cross any obstacles use the direct elbow path instead of going through the pathfinding algorithm.
- Applied biome formatting to test file - Ensures consistent code style across the project
@seveibar @techmannih please tell me if anything else is required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replicate the problem in the issue, then solve. Don't solve prior to replication
Okay I'll replicate the issue and update the pr |
Allow straight-line traces when no collisions exist
Fixes: Allow drawing traces using the default
calculateElbow
path when there are no direct collisions, eliminating unnecessary complex routing.Changes
SchematicTraceSingleLineSolver2
Testing
Impact
This will create cleaner, more direct traces in circuits like the boost converter example, where many connections can use straight-line routing without obstruction.
/fixes #68
/claim #68