-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Stop successive edges from linking up #77
Comments
So it looks like the entire graph has one line formed of segments, and adding an edge simply adds two more vertices to this segmented line. So I presume this is the intended behaviour? Is there a simple way of getting around that? (Though I must admit, I'd be confused about this being intended behaviour - it would seem to place a huge restriction on the types of graphs that this can be used for :( ). |
I have a proposal below. It works, but I doubt that is the most efficient approach. In fact, I REALLY hope that it isn't the most efficient approach, because it impacts performance. Fortunately, it only has an impact on three methods that are already grouped together, so I'll just post those.
|
The line here might be problematic for your scenario. The distinction here is between So, all in all, I would recommend try changing that line from On a side note, I just noticed a possibly different bug: #78
I would be extremely surprised if any of my code is anywhere near ideal, performance wise. This was my first project related to graphics, and the code reflects that. If you have any ideas about how to improve any of it, please let me know! |
I'm trying this library out, and I have to admit that it is very useful.
One issue that I'm having right now is that drawing two independent edges ends up with a third edge being drawn. Simple example:
Expected result:
Result with the current version of graphosaurus:
This is problematic for me. If I'm doing something wrong here, I can't see what it is.
I have tried looking around the code and finding where this happens, but I chose this library specifically to avoid the learning code of three.js - so I don't know where this error is creeping in.
The text was updated successfully, but these errors were encountered: