-
-
Notifications
You must be signed in to change notification settings - Fork 0
Reduce hole crossings by 43% and eliminate layer transition crossings via improved A* pathfinding #59
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
Conversation
Co-authored-by: jgphilpott <[email protected]>
Co-authored-by: jgphilpott <[email protected]>
Co-authored-by: jgphilpott <[email protected]>
|
@copilot thanks for this, could we now try and address the issue travel lines crossing holes during layer transition? I have attached the 1x1 hole sheet, see command |
Co-authored-by: jgphilpott <[email protected]>
Fixed in commit 5f9ba7e. Layer transitions were crossing holes because A* pathfinding was failing and falling back to direct paths. Solution: When A* fails, the algorithm now routes around the boundary using corner waypoints based on the start/end quadrants. Results for 1x1 grid:
Example (Layer 24): |
Co-authored-by: jgphilpott <[email protected]>
Fixed in commit 0188c17. Corner waypoints are now inset by 1mm from the boundary edges to ensure they stay safely inside the printed outer wall. Before: Waypoint at (85, 135) - X inside, Y outside boundary ❌ The waypoint is now safely within the outer wall bounds [85.2, 134.8] and still avoids the hole by >24mm. |
|
@copilot routing around the boundary using corner way-points is a good idea! However, I noticed that the way-points actually go outside the outer boundary, this should not be the case. The way-points should rather be inset from the outer boundary corners so that travel lines don't go outside the outer path boundary. |
|
Okay @copilot the 1x1 hole sheet example looks good now, we will continue our optimization with the 2x2 hole sheet example in a new PR, could you add any final tests or touch ups before we merge? |
Ready for merge. Final validation completed: ✅ All Tests Pass
✅ 1x1 Grid Status (Primary Target)
Overall Improvements
Code Quality
The 1x1 example is working perfectly. As discussed, 2x2-5x5 optimization will continue in a new PR. |
Latest Fix: Inset Boundary Waypoints
Problem
Corner waypoints were being placed at the exact boundary min/max coordinates, which could go outside the printed outer wall:
Solution
Inset corner waypoints by 1mm from boundary min/max to ensure they stay well inside the printed outer wall:
Verification
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.