-
Notifications
You must be signed in to change notification settings - Fork 4
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
Make edges between grid cells orthogonal #84
Comments
@meanderix can you draw your ideal pathing? I think going around the outside will look weird too. I think internal grid edges is a case where most of the time you want just the straight line. If you have many internal grid edges, it quickly ends up like a maze of overlapping routes otherwise. |
@alixander (The previous example was a bit hypothetical and I understand that there are also use cases for non-orthogonal edges.) |
@meanderix Thank you for the example. I suppose grid was cleaner than if you had run this without grid? Because I feel like the grid is just a suboptimal placement for this use case. This is the best route I can come up with and it doesn't look great. I suppose you could increase the gap size so that the routes go in between, but there's still no way to avoid overlap. |
@alixander |
In this case it wasn't able to find a route for You gave my last comment a thumbs up, does that mean the route I proposed is one you'd be satisfied with? |
@alixander Well, I would be happy with orthogonal edges. I guess the optimal path depends. Maybe a "dynamic gap" between rows/columns could also be an option in order to allow a connection in between grid cells. (But I can understand that it adds complexity to the implementation.) |
@alixander |
Right, crossing bridges is a feature request: terrastruct/d2#1932 |
Looks like the edges internal to a grid structure do not respect orthogonality rules.
The text was updated successfully, but these errors were encountered: